// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(0.081619948148727,0.047098185867071,-0.075232282280922,0.003977784421295);
res += vec4(0.048876825720072,-0.065276518464088,0.030539283528924,0.009185437113047) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.025041893124580,0.119774155318737,-0.001578325871378,-0.013065468519926) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.003200972452760,-0.064572095870972,-0.019602663815022,-0.022558841854334) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.023685174062848,0.031993590295315,0.031198417767882,-0.041560284793377) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.028270442038774,-0.067096501588821,-0.038475185632706,-0.011642619967461) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.024251665920019,0.141671970486641,0.044789783656597,-0.017666799947619) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.978879332542419,-0.410992026329041,-0.110556744039059,0.096367061138153) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.077388711273670,0.499215126037598,0.021594785153866,-0.034431546926498) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.135607734322548,-0.103549629449844,0.031639598309994,0.117052055895329) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.044330496340990,0.016933184117079,0.012065486982465,0.019053170457482) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.200529992580414,-0.240315616130829,-0.297283172607422,0.003336617257446) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.593219101428986,0.537544369697571,-0.485519230365753,-0.087276361882687) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.436277478933334,-0.689523637294769,0.849378764629364,0.027682421728969) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.100869022309780,0.382814377546310,0.011497248895466,-0.003167731920257) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.082709424197674,-0.168147608637810,-0.071131110191345,-0.022095339372754) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.064918242394924,0.146318435668945,0.047642700374126,0.051170427352190) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.090586058795452,0.009209181182086,-0.328766047954559,-0.127955853939056) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.088192299008369,-0.018688531592488,0.085987038910389,0.650700569152832) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.023839309811592,-0.159178808331490,-0.022014012560248,0.115438289940357) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.043731492012739,0.118770696222782,0.082294508814812,-0.111075975000858) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.002529507502913,0.027620336040854,0.087155722081661,-0.429174184799194) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.029301863163710,-0.249759048223495,0.009826092049479,-0.405826121568680) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.018326001241803,-0.000874986057170,0.052787631750107,-0.693136394023895) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.005342046730220,0.085972324013710,-0.040806006640196,-0.441844582557678) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.002719279611483,0.014030735008419,-0.033383924514055,-0.396212846040726) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.013877405785024,0.980298995971680,-0.148258179426193,0.004631069023162) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.029843516647816,0.201883688569069,0.112488597631454,-0.042962558567524);
res += vec4(0.006491074338555,-0.018883343786001,-0.037255521863699,0.158325761556625) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.119810722768307,0.035083934664726,0.027773890644312,-0.205652415752411) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.098925538361073,-0.210132062435150,0.023963974788785,-0.052881117910147) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.062210842967033,0.133445680141449,-0.001517943339422,0.106672115623951) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.092802144587040,0.021661028265953,0.032547336071730,-0.018500521779060) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.152292549610138,-0.041921712458134,-0.067689321935177,-0.032668124884367) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.074959404766560,0.229383021593094,0.061433997005224,-0.353646606206894) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.613575398921967,-0.186280041933060,-0.017355365678668,0.277223020792007) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.453217029571533,-0.225919663906097,-0.021348586305976,0.192229762673378) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.005461928434670,0.062725611031055,-0.101415097713470,-0.062650509178638) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.015485707670450,-0.011820528656244,-0.077155917882919,-0.100945003330708) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.163130283355713,0.007921066135168,-0.600216329097748,0.304322600364685) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.097917452454567,-1.074673175811768,0.691083610057831,0.207526132464409) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.092818848788738,0.490646690130234,0.065463937819004,-0.460864990949631) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.046086125075817,-0.088490299880505,0.108063451945782,0.084370277822018) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.133056983351707,0.052011720836163,0.065574690699577,-0.065310157835484) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.154311060905457,0.135690450668335,-0.149300441145897,0.070211954414845) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.081071227788925,0.420638948678970,-0.268367767333984,-0.122328840196133) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.137824848294258,-0.053545378148556,-0.036208029836416,-0.000321485364111) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.011815552599728,0.005233183037490,0.010433533228934,0.049301512539387) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.110251232981682,-0.031423907727003,-0.040059216320515,0.031604945659637) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.043350476771593,-0.011021659709513,-0.053341902792454,0.121673636138439) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.315706968307495,-0.038074981421232,0.085746884346008,-0.169470757246017) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.108845859766006,0.028970196843147,0.008986383676529,0.079272925853729) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.032855566591024,-0.007065344601870,-0.023422710597515,-0.016545191407204) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.890924811363220,1.053983926773071,0.707908272743225,-0.165572151541710) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.125783935189247,0.269758880138397,-0.144018068909645,-0.733838558197021);
res += vec4(0.003577496623620,-0.002631699666381,-0.037339821457863,-0.003838399192318) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.044860318303108,0.063034340739250,-0.060060694813728,-0.004941963125020) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.169692069292068,-0.031039588153362,0.092491105198860,0.015183614566922) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.036395091563463,-0.048050086945295,-0.018762478604913,-0.011484459973872) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.048434488475323,0.032968506217003,0.017090942710638,0.014142891392112) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.002583860652521,-0.016742780804634,-0.162742897868156,0.066766381263733) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.026832856237888,0.124436564743519,-0.483188480138779,-0.092790864408016) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.070039510726929,-0.126604855060577,-0.360979229211807,-0.024005649611354) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.163648337125778,-0.098356619477272,-0.206363156437874,-0.066395305097103) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.148508921265602,0.056859225034714,-0.013150661252439,-0.016293028369546) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.141677543520927,0.021644335240126,0.130369350314140,-0.091131217777729) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.070434898138046,-0.268831610679626,0.165996730327606,0.286405563354492) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.976890206336975,-0.790117859840393,0.714359879493713,0.759670674800873) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.247921735048294,-0.536812305450439,0.263682782649994,0.203118532896042) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.417856007814407,-0.103987559676170,-0.024706028401852,0.004354232922196) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.030742693692446,0.066274881362915,-0.008036663755774,0.005393106956035) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.034794669598341,-0.024003956466913,-0.261600434780121,-0.168695390224457) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.385153859853745,-0.046305086463690,0.126538366079330,0.328959256410599) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.306834042072296,0.055057834833860,-0.187715247273445,-0.080653689801693) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.173978373408318,0.110145695507526,0.001906302524731,-0.046389408409595) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.021507063880563,0.005676487460732,-0.007251210045069,0.002120833843946) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.057840496301651,-0.053385611623526,0.054292980581522,-0.015288521535695) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.070363260805607,0.002940660342574,0.034312773495913,-0.006411340553313) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.094469144940376,-0.091297864913940,0.067738331854343,-0.024980459362268) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.102044880390167,0.012609588913620,-0.000795910891611,0.020058372989297) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.005976231303066,0.460473269224167,-0.007033937610686,0.001638846239075) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(0.191301435232162,0.029508940875530,-0.101536527276039,0.028926528990269);
res += vec4(0.031852591782808,0.032615263015032,-0.042804513126612,0.049917027354240) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.071559131145477,-0.032049976289272,0.055726718157530,-0.009398375637829) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.022423155605793,0.046068441122770,0.006253864616156,-0.057553265243769) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.070101782679558,-0.067483738064766,0.039042614400387,-0.044394157826900) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.016922628507018,-0.041177455335855,-0.023559475317597,0.007280504330993) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.054590962827206,-0.095061972737312,0.015182708390057,0.046897947788239) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.015069881454110,-0.123436227440834,-0.093184940516949,-0.078532494604588) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.408031642436981,0.142158553004265,-0.002725438913330,0.302447617053986) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.319838881492615,-0.241527289152145,0.104199059307575,-0.086277946829796) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.149278968572617,-0.207540750503540,0.060278274118900,0.051055796444416) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.140553861856461,0.184007391333580,0.010829388163984,-0.187194615602493) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.078604064881802,0.128622621297836,0.075619317591190,0.332291692495346) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.403230309486389,0.383473098278046,0.600940525531769,-0.556938290596008) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.138923302292824,-0.221946924924850,0.181421458721161,0.225508406758308) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.151848420500755,-0.254637509584427,-0.037923000752926,-0.004667832981795) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.007240409497172,0.013390689156950,0.036571942269802,-0.095797926187515) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.142415806651115,-0.240086331963539,-0.042731016874313,-0.369178503751755) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.517876446247101,0.494906783103943,-0.104877322912216,0.567831933498383) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.143603891134262,-0.814897835254669,-0.504965245723724,-0.022828320041299) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.019879916682839,-0.235775291919708,-0.080953769385815,-0.015124189667404) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.017830114811659,0.025462245568633,-0.004275699146092,0.131114915013313) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.011334450915456,-0.107320196926594,-0.016706049442291,0.256324082612991) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.062580049037933,0.054823618382215,-0.239619314670563,-0.377255946397781) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.016922328621149,-0.400152593851089,-0.001050243852660,-0.059790354222059) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.070465631783009,-0.079100944101810,0.084812946617603,-0.075156539678574) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.008090167306364,0.002407695166767,0.002483796328306,0.917356848716736) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(-0.007242176681757,0.096775971353054,-0.003334752749652,0.235127657651901);
res += vec4(-0.000900498649571,-0.664862215518951,0.014000394381583,0.006265790667385) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.010373058728874,0.024629956111312,0.217168673872948,0.003763637272641) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.046078704297543,0.001920076436363,-0.144236147403717,-0.106124892830849) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.014949936419725,0.045789472758770,-0.130400031805038,0.034479815512896) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.002356040058658,-0.039052337408066,0.011295970529318,0.005828846246004) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.170139282941818,-0.858130455017090,-0.165948703885078,-0.042024530470371) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.051268108189106,-0.008070196956396,-0.165253937244415,0.157359749078751) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.051768723875284,-0.269733458757401,0.115490593016148,0.126263767480850) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.070148639380932,0.157359823584557,0.034905686974525,-0.006099697668105) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.001214458374307,-0.043897952884436,0.256852835416794,0.025284118950367) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.119480945169926,-0.384379267692566,0.128175601363182,0.164466217160225) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.564342796802521,0.437881588935852,0.077775567770004,-0.029190873727202) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.171748876571655,0.099935054779053,0.054995901882648,-1.531492114067078) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.167261078953743,-0.104389347136021,-0.189873307943344,0.125347286462784) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.017288723960519,0.005303412210196,-0.055018544197083,-0.091117963194847) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.103959850966930,0.096287623047829,0.050674416124821,-0.061117019504309) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.004274876322597,-0.135219663381577,0.032777294516563,-0.234733194112778) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.292507082223892,0.022175021469593,0.153625294566154,0.072839759290218) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.455205529928207,0.099896579980850,0.157110169529915,0.087350443005562) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.005433722399175,0.019377559423447,-0.292066216468811,0.033252757042646) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.025760119780898,-0.173388883471489,0.021754950284958,0.044787399470806) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.000918036908843,0.080643817782402,-0.099109865725040,-0.000558042724151) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.155144110321999,-0.077288039028645,-0.108380094170570,0.018939828500152) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.082330688834190,0.012494021095335,0.067387312650681,0.057842288166285) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.080171942710876,-0.018773918971419,-0.072346575558186,-0.014080012217164) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.293136805295944,0.008245703764260,0.739595293998718,-0.015205436386168) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(0.038634065538645,0.032701294869184,-0.276790440082550,0.163717359304428);
res += vec4(0.035018753260374,0.055156521499157,-0.023388501256704,0.020758165046573) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.090332657098770,0.052865773439407,0.007627634331584,0.055046450346708) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.143252000212669,-0.287545025348663,0.033747777342796,0.078168280422688) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.007521118503064,0.200760826468468,0.016915030777454,0.177231192588806) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.042620085179806,-0.056380353868008,-0.060677532106638,0.008730656467378) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.003529011970386,0.071440212428570,-0.015920555219054,-0.062730297446251) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.053405415266752,-0.136367872357368,0.016591493040323,0.059712491929531) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.619238317012787,0.133109554648399,-0.084821924567223,-0.659456849098206) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.371576517820358,-0.346093326807022,0.457998782396317,-0.866007328033447) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.015255006961524,0.156771302223206,0.375774860382080,-0.054935142397881) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.037670046091080,0.063827931880951,-0.022278528660536,0.025134054943919) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.025958120822906,-0.050842069089413,-0.167466774582863,0.284751206636429) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.708605945110321,0.497460305690765,-0.197947993874550,0.057160206139088) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.247030884027481,-0.234485089778900,-0.282887399196625,-0.669413328170776) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.029574578627944,-0.123128540813923,0.423496901988983,0.211552873253822) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.031917262822390,0.021114813163877,0.023691723123193,-0.065781071782112) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.035561997443438,-0.195530429482460,0.138155624270439,-0.093568034470081) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.073143407702446,-0.078040741384029,-0.232552006840706,0.057053700089455) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.093149088323116,0.024609792977571,-0.248763412237167,-0.018083689734340) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.047026619315147,0.233053222298622,0.204251021146774,0.005672954022884) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.032319653779268,0.003364613512531,0.011269021779299,0.028620822355151) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.003307059174404,-0.037256635725498,-0.009511000476778,-0.032410033047199) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.037561852484941,0.164425581693649,0.063301384449005,0.059544827789068) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.003757532453164,-0.104639396071434,-0.037979841232300,0.022525047883391) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.000606399436947,-0.105403967201710,-0.058427546173334,-0.052001431584358) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.390473812818527,0.747697353363037,-0.020370859652758,0.004213186446577) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(0.017721179872751,-0.092836074531078,0.010283980518579,0.004364635795355);
res += mat4(-0.112644694745541,-0.070533454418182,-0.118845753371716,-0.019020495936275,-0.091103933751583,0.207860991358757,-0.043845925480127,-0.067123211920261,-0.007143822032958,-0.122928902506828,-0.038602843880653,-0.012432085350156,-0.155420333147049,0.056757714599371,0.140907973051071,0.357645958662033) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.139618054032326,0.006529486738145,-0.124044954776764,0.019163502380252,-0.085634499788284,-0.140096202492714,-0.242183282971382,0.051220063120127,-0.014224187470973,0.111431270837784,-0.302402138710022,0.103942841291428,-0.063513465225697,-0.140802606940269,0.207838267087936,0.137921690940857) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.121929302811623,-0.001180214690976,-0.019385362043977,0.019902585074306,0.078051038086414,0.111571758985519,0.008762999437749,0.009457333944738,0.079986564815044,0.245907902717590,0.016563815996051,-0.091089785099030,0.105211004614830,0.121103681623936,0.152849525213242,-0.540540397167206) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.049518585205078,-0.086585819721222,0.075247809290886,-0.004866851959378,0.118620671331882,-0.388979643583298,0.156466245651245,0.029960481449962,-0.182492792606354,-0.393657207489014,-0.104278594255447,0.023226976394653,-0.127739340066910,-0.041465848684311,-0.241291701793671,0.084804616868496) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.081798195838928,0.117824450135231,-0.129015758633614,0.074569605290890,0.234129890799522,0.290154963731766,0.035967517644167,-0.230240687727928,-0.293560832738876,-0.080451972782612,0.295152455568314,-0.069945707917213,-0.012078100815415,-0.022109653800726,-0.089303039014339,0.022443907335401) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.266820698976517,-0.297344535589218,-0.350309610366821,0.017130607739091,-0.209944084286690,-0.085947185754776,0.201538309454918,0.281229704618454,0.089690133929253,0.080092839896679,-0.022637173533440,0.237051889300346,0.273537278175354,0.121518313884735,-0.084366299211979,-0.037408713251352) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.080110795795918,-0.113814465701580,0.168066963553429,0.074126116931438,-0.025454310700297,0.048758342862129,-0.280315071344376,-0.008969431743026,0.031702812761068,-0.100607946515083,-0.103618800640106,-0.067061729729176,0.109241709113121,-0.014140584506094,-0.073860004544258,-0.021212017163634) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.214628756046295,0.148323088884354,0.259125918149948,-0.098131030797958,-0.032867893576622,0.044026196002960,0.216911584138870,0.124562889337540,-0.017729263752699,0.000170764964423,0.135044589638710,0.072105251252651,0.032309759408236,0.017619011923671,-0.002482445910573,-0.018447402864695) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.116845175623894,0.249343559145927,-0.060079246759415,0.170018687844276,0.070306144654751,-0.085894584655762,-0.221950531005859,-0.185850381851196,0.213503286242485,0.322081118822098,0.449114024639130,-0.123543344438076,0.015910044312477,-0.030550649389625,-0.022399112582207,-0.003082538023591) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.062880404293537,-0.100620716810226,0.308760076761246,-0.066743537783623,-0.003335670335218,0.025861350819468,0.072289690375328,0.079339079558849,0.037737682461739,0.158959105610847,0.024680182337761,-0.001779378158972,0.096049383282661,0.109584733843803,0.073824159801006,-0.028441665694118) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.075627908110619,0.205986902117729,-0.143326297402382,0.176820531487465,-0.190808400511742,-0.117150902748108,-0.074137777090073,0.084789969027042,0.130381062626839,0.229953840374947,-0.126015469431877,0.005098080262542,-0.062035862356424,0.148729488253593,-0.276640713214874,0.013867462053895) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.009570543654263,0.131902754306793,-0.039995748549700,-0.085157103836536,-0.174081176519394,-0.155880838632584,-0.024629741907120,-0.075284026563168,0.204045072197914,0.102318383753300,-0.064768515527248,-0.128679603338242,0.043938837945461,-0.000723181117792,-0.151102408766747,-0.052120812237263) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.067115254700184,0.057121671736240,0.139577075839043,0.005486635491252,-0.060876768082380,-0.287563860416412,0.299829661846161,0.091789804399014,-0.064198106527328,0.213816225528717,-0.054965574294329,0.121276810765266,-0.105361759662628,-0.144407093524933,-0.003048298181966,0.042386926710606) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.097539417445660,-0.090079583227634,-0.054037433117628,-0.042886212468147,0.595686733722687,0.338993012905121,0.138591796159744,-0.598652958869934,-0.368708848953247,-0.548687398433685,-0.024529900401831,0.188491180539131,-0.080652542412281,0.015242975205183,-0.046767357736826,-0.052498444914818) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.095280058681965,0.037592682987452,0.014750531874597,0.036930736154318,-0.176392927765846,0.039030838757753,0.081455551087856,0.368391603231430,0.405202865600586,0.192040219902992,-0.094921916723251,-0.424551129341125,-0.047411099076271,0.064486183226109,-0.162424594163895,0.086209937930107) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.026896299794316,-0.375213384628296,0.020191434770823,0.071652248501778,0.057543192058802,-0.108931072056293,-0.493070453405380,-0.062072239816189,-0.009290638379753,0.070350989699364,0.389244377613068,0.032621707767248,0.000134980291477,-0.017645196989179,0.214783340692520,-0.096173621714115) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.315244078636169,0.180933341383934,-0.067735143005848,-0.281554818153381,0.129038587212563,0.217744663357735,0.206759974360466,-0.019620407372713,-0.162661820650101,-0.210808262228966,-0.385888129472733,-0.047390807420015,-0.035375915467739,0.153939977288246,0.078141242265701,0.036409944295883) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.140776470303535,0.066358447074890,-0.147042691707611,0.193637192249298,-0.106078714132309,-0.191542237997055,0.020355973392725,0.141744107007980,-0.011508884839714,0.024171860888600,-0.136882767081261,-0.018435560166836,0.059446953237057,0.095646053552628,-0.126123130321503,0.216946423053741) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.069291464984417,0.148205369710922,-0.074581392109394,0.119609132409096,0.063955768942833,-0.124117508530617,0.101980410516262,-0.318602681159973,-0.073816284537315,-0.036179579794407,0.039962485432625,0.023070339113474,0.097835890948772,-0.055778708308935,-0.267721325159073,-0.052515562623739) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.011788907460868,0.028965940698981,0.028393017128110,-0.192440792918205,0.150809496641159,0.068640276789665,0.084800988435745,-0.014277022331953,-0.135377943515778,0.018460400402546,0.028475511819124,0.067647427320480,-0.030029363930225,-0.037318836897612,-0.087174423038960,0.241448074579239) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.025665396824479,0.026751393452287,-0.070421040058136,-0.031676042824984,-0.112021602690220,0.065707780420780,-0.045809660106897,0.272394955158234,0.115598216652870,-0.059357620775700,-0.070028401911259,-0.110477991402149,0.107139281928539,-0.064869008958340,-0.221524730324745,-0.195493757724762) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.024339003488421,-0.264266341924667,0.245685577392578,0.287118166685104,0.444056272506714,0.494053393602371,-0.016037156805396,-0.274366647005081,-0.008887907490134,-0.063325248658657,-0.140328556299210,0.089340247213840,0.039621304720640,0.039834361523390,-0.129956096410751,0.086789421737194) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.328503906726837,0.238500967621803,-0.019348077476025,-0.442631423473358,0.251590907573700,0.789343118667603,0.073413439095020,-0.190148323774338,0.002500352216884,0.039920333772898,0.138531744480133,0.097851082682610,-0.006186660844833,0.069131165742874,0.001603658776730,0.476645320653915) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.018810911104083,-0.152465194463730,-0.010230736806989,0.023274239152670,-0.063506714999676,0.358477562665939,0.130938529968262,0.447107195854187,0.060221374034882,-0.097211964428425,-0.118638746440411,-0.157879605889320,0.026982558891177,0.103383399546146,-0.347314149141312,-0.433395475149155) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.231849029660225,-0.140658125281334,0.299225121736526,-0.016600221395493,0.245597749948502,0.152672842144966,-0.139549031853676,-0.195634201169014,0.194197982549667,0.077154785394669,0.118634030222893,-0.013580479659140,0.122132249176502,0.008376043289900,0.329580157995224,0.028264811262488) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.079663470387459,0.019862702116370,0.207253038883209,0.017344539985061,0.153900384902954,0.308373421430588,-0.005654404871166,0.028892114758492,-0.043329119682312,0.182702973484993,0.107005454599857,0.088198013603687,0.007568702567369,0.014054634608328,-0.125899225473404,-0.126347884535789) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.072233259677887,0.023797757923603,-0.086591564118862,-0.023370167240500,-0.186288490891457,0.101929508149624,0.127685934305191,0.321280002593994,0.007300501689315,0.148956477642059,0.042995266616344,-0.121191307902336,0.072308830916882,0.020738497376442,-0.156805947422981,0.051360856741667) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.047593515366316,-0.147827386856079,0.054256252944469,-0.137850269675255,0.039928037673235,0.119995214045048,0.034902255982161,0.063189052045345,0.037377294152975,0.066054813563824,0.029692044481635,0.189573213458061,-0.148739174008369,0.040881935507059,-0.266958624124527,0.105749830603600) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.172822862863541,0.084056600928307,0.078767776489258,-0.074120491743088,0.302454739809036,0.122548580169678,-0.183889076113701,-0.299202054738998,0.032394938170910,0.040248472243547,-0.284128785133362,-0.213423505425453,-0.094482153654099,-0.267892569303513,0.238225013017654,0.035883337259293) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.165704354643822,-0.095847636461258,-0.075211115181446,0.046440064907074,-0.077483415603638,-0.165850356221199,0.119099780917168,-0.083984896540642,0.126880720257759,0.117008946835995,-0.083473987877369,0.029589224606752,0.105490751564503,0.016880281269550,0.226053342223167,-0.120394498109818) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.162487089633942,-0.145967721939087,0.016107173636556,-0.069482743740082,-0.020773097872734,0.086401522159576,0.098226703703403,0.009684940800071,0.095183804631233,-0.029153283685446,-0.200059682130814,-0.181875914335251,0.068737782537937,-0.292653977870941,0.206495940685272,0.073449812829494) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.202734425663948,0.137903854250908,0.165978744626045,0.189023792743683,0.191865921020508,0.006015828344971,0.026836736127734,-0.285224378108978,-0.153424471616745,-0.120186232030392,0.155987292528152,-0.055479962378740,0.145003184676170,0.391197532415390,-0.398643612861633,-0.202317595481873) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.101753577589989,0.233772993087769,-0.254468530416489,-0.006112915463746,-0.027026932686567,-0.119334153831005,-0.064525134861469,0.072387807071209,-0.157296434044838,0.081613488495350,-0.073712080717087,0.024998888373375,-0.144065842032433,-0.004595729988068,-0.006924016866833,0.121675342321396) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.005903498735279,0.042007718235254,-0.136614695191383,-0.048907544463873,0.020552946254611,0.102719798684120,-0.007690120022744,0.060987465083599,-0.006661824882030,0.018733343109488,0.102131702005863,0.006540431641042,-0.050756566226482,-0.066473796963692,-0.146723374724388,-0.012011175975204) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.017328707501292,-0.306549966335297,-0.027950562536716,0.038339991122484,0.205086782574654,0.091877222061157,0.069273538887501,-0.104672655463219,-0.083554148674011,-0.083979018032551,-0.041914645582438,0.048530716449022,-0.017094582319260,0.015016349963844,0.267665326595306,0.108724825084209) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.025324234738946,-0.016382632777095,0.006169646047056,-0.013124189339578,-0.099487282335758,-0.110403776168823,0.000890380877536,-0.030221847817302,-0.058708034455776,0.014522734098136,-0.083181992173195,0.005250578746200,-0.008341714739799,0.067435353994370,-0.125155314803123,-0.117159336805344) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.125020444393158,-0.035251427441835,-0.141666725277901,-0.002769238315523,-0.009479597210884,0.088048435747623,-0.028030099347234,-0.007993217557669,-0.062135729938745,-0.104478932917118,-0.206851229071617,0.054244749248028,-0.241108551621437,-0.267851173877716,-0.358784377574921,0.158254578709602) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.031137289479375,-0.136506944894791,-0.311563879251480,-0.074231863021851,0.003343101590872,-0.214766263961792,-0.045678231865168,0.009962226264179,-0.059715554118156,-0.109781414270401,-0.185335054993629,-0.038100469857454,-0.282532513141632,-0.246988236904144,-0.002241485519335,-0.119403466582298) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.085162326693535,0.207247301936150,-0.415715277194977,0.120697021484375,-0.058382507413626,-0.083263956010342,0.198321849107742,0.035465661436319,0.087565042078495,-0.107642143964767,0.024121174588799,-0.009921904653311,-0.122675366699696,-0.007836199365556,0.033795695751905,0.129183381795883) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.057809896767139,0.016747329384089,-0.077111959457397,0.068540953099728,0.000252408994129,0.092768855392933,-0.041183348745108,-0.056238304823637,-0.035406984388828,0.061299655586481,0.026223102584481,-0.123922094702721,-0.091282784938812,-0.412151515483856,0.131399601697922,0.241903007030487) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.171089276671410,0.023845752701163,-0.310836851596832,0.081311509013176,0.024394903331995,-0.187293484807014,-0.026036521419883,0.007344477344304,0.006108728237450,-0.072276622056961,0.108466126024723,0.108438737690449,0.504275619983673,0.463340789079666,-0.041721146553755,-0.216772943735123) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.054120197892189,-0.054958797991276,0.018670022487640,0.095211185514927,0.000555878155865,0.040088128298521,0.170404061675072,0.065799899399281,0.117378674447536,0.047095190733671,-0.080324620008469,-0.069966793060303,-0.530736923217773,0.210712462663651,-0.115836858749390,0.040878515690565) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.026482013985515,0.084884315729141,0.014527137391269,-0.039719209074974,-0.039235278964043,0.057690843939781,-0.047831747680902,-0.046619288623333,-0.142931312322617,0.104051962494850,0.072233118116856,0.096865527331829,0.081758432090282,-0.084312684834003,-0.012862724252045,0.054622795432806) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.096966616809368,0.177090167999268,0.671697974205017,-0.037339154630899,0.023677457123995,-0.181254342198372,0.077662676572800,0.067642308771610,-0.089522585272789,0.037769149988890,0.105394810438156,-0.038121733814478,-0.094223491847515,0.026807457208633,0.370473027229309,0.054710462689400) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.091877490282059,0.011213057674468,-0.084743879735470,-0.043367564678192,0.019029114395380,0.141084089875221,0.076294012367725,-0.149666115641594,-0.026561573147774,0.220315054059029,0.046708025038242,0.075309112668037,-0.045676987618208,-0.087074168026447,-0.069619491696358,-0.173431739211082) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.087308347225189,-0.186356440186501,-0.102727100253105,-0.080088257789612,-0.006502208299935,0.249838262796402,0.012637909501791,-0.091623999178410,-0.019727306440473,0.030470294877887,0.099065177142620,-0.140572190284729,-0.112591430544853,-0.142590463161469,0.056503217667341,0.004082144238055) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.099096991121769,-0.315304607152939,-0.099652111530304,0.036955859512091,-0.019842656329274,-0.057271685451269,-0.021786225959659,-0.013304423540831,-0.041833333671093,-0.093196168541908,0.140791058540344,0.046588879078627,-0.066433742642403,-0.087503731250763,0.063478320837021,-0.048647101968527) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.070996835827827,-0.044090252369642,-0.041622418910265,0.035620279610157,0.058500450104475,0.085537508130074,0.020834866911173,-0.050168644636869,0.046574495732784,0.003198898630217,-0.119522072374821,-0.011222059838474,0.006669650785625,-0.086155146360397,-0.016786506399512,-0.008760832250118) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.156423330307007,0.146190568804741,-0.402151674032211,-0.095218323171139,-0.101470082998276,0.158398628234863,-0.118974149227142,0.097880959510803,0.023698737844825,-0.143038988113403,-0.210325673222542,-0.170378848910332,0.207989320158958,0.245860412716866,0.013744383119047,-0.182547464966774) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.202411696314812,0.165338128805161,-0.124812558293343,-0.139556676149368,-0.050788387656212,-0.270064920186996,-0.206601321697235,0.234600663185120,-0.029893390834332,-0.235378503799438,-0.099365398287773,0.319455444812775,0.066454671323299,-0.026181403547525,-0.053153928369284,0.177603483200073) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.109943062067032,0.093337215483189,0.020168887451291,0.316570818424225,0.187737718224525,0.009950881823897,-0.095490582287312,-0.102380849421024,0.096986778080463,-0.075835533440113,-0.068266391754150,-0.017033684998751,-0.013410569168627,-0.108786024153233,0.049705546349287,0.046893797814846) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.130394667387009,0.024343878030777,-0.367309093475342,0.218624770641327,-0.016849441453815,0.208159700036049,0.239801034331322,0.016248704865575,0.045169860124588,-0.006577750667930,0.037519223988056,-0.204215630888939,0.244652375578880,0.298229992389679,0.110042616724968,-0.154641419649124) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.051483638584614,0.056590449064970,-0.235357239842415,0.098120428621769,-0.158519208431244,-0.267233699560165,-0.044324159622192,0.000551401230041,-0.010653575882316,0.108892753720284,-0.025310462340713,-0.006621098145843,-0.236989364027977,0.325195461511612,-0.021327601745725,0.257628589868546) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.019891502335668,0.190021485090256,-0.122087888419628,-0.277659535408020,0.152112916111946,0.324443668127060,0.130117163062096,-0.078480534255505,-0.005887245759368,-0.036480728536844,0.236850231885910,-0.004831872880459,-0.111166164278984,-0.104943372309208,-0.114477969706059,-0.093583561480045) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.003501939121634,-0.007069748826325,-0.075976230204105,-0.649203002452850) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(-0.016817286610603,-0.026731211692095,0.016738938167691,-0.008506804704666);
res += mat4(-0.086913645267487,0.016108382493258,0.128444150090218,0.001356157590635,-0.085667014122009,0.153259232640266,0.049073860049248,0.152632728219032,0.040919966995716,0.044997692108154,-0.073677726089954,0.033953789621592,0.011988873593509,-0.133304089307785,0.023772111162543,-0.116717122495174) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.092917717993259,0.109574548900127,-0.028307130560279,-0.080863364040852,0.197304233908653,0.102275364100933,0.193913862109184,-0.021862814202905,0.168869867920876,0.041916511952877,-0.098537042737007,0.036788228899240,-0.027864959090948,-0.068438477814198,0.132880046963692,-0.033277627080679) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.168079078197479,-0.050384681671858,-0.062108945101500,0.228198140859604,-0.048645272850990,-0.436939388513565,-0.041679393500090,0.084329918026924,-0.036957163363695,0.017184654250741,-0.016850622370839,-0.119467906653881,-0.049101084470749,0.013043603859842,0.178507789969444,0.184003889560699) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.096202284097672,-0.097936838865280,0.017388937994838,0.093399703502655,-0.004342664033175,-0.140894457697868,-0.065708957612514,0.045111991465092,-0.031443577259779,0.029038060456514,0.068597197532654,-0.093460462987423,-0.102933533489704,0.054450400173664,0.139477670192719,0.115724511444569) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.026203963905573,-0.094311282038689,0.094360023736954,-0.025571107864380,-0.134319990873337,0.300352841615677,-0.375941187143326,0.298777192831039,0.152827039361000,-0.042269576340914,-0.027177512645721,0.068110309541225,-0.099645391106606,-0.018404232338071,0.035521056503057,0.270368129014969) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.268881499767303,-0.094407156109810,-0.018875563517213,-0.111523687839508,-0.004797805100679,0.223716735839844,-0.021041616797447,-0.416160345077515,-0.207016527652740,-0.180481284856796,-0.034820538014174,-0.209188237786293,-0.066992163658142,0.052260659635067,-0.036955334246159,0.229200825095177) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.009481553919613,-0.058153510093689,-0.009308220818639,0.070026338100433,0.058033850044012,-0.044352065771818,0.046165127307177,-0.328681886196136,0.071586184203625,-0.063468046486378,0.020060213282704,0.228850454092026,0.056098587810993,0.042387790977955,-0.059830401092768,0.090268895030022) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.087530367076397,-0.072445690631866,0.004998826887459,-0.088401257991791,0.084721565246582,-0.155464991927147,0.151587486267090,-0.117666326463223,-0.015536770224571,0.056969624012709,0.104828141629696,0.186635017395020,0.039251036942005,-0.001065588323399,-0.150018170475960,-0.113826908171177) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.001879847724922,-0.046421818435192,0.001136558479629,-0.033029038459063,-0.016808154061437,0.052276484668255,0.128206014633179,0.387673467397690,-0.145484015345573,0.032400973141193,0.206771686673164,0.126532703638077,0.045279007405043,0.033703029155731,0.038970772176981,-0.141013324260712) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.038158912211657,-0.137390464544296,-0.055290147662163,0.032812222838402,-0.081453010439873,0.223653808236122,-0.106225185096264,0.070072241127491,-0.061251699924469,0.072441160678864,0.080476127564907,-0.011476866900921,-0.335791289806366,0.045202028006315,0.095023788511753,-0.122169502079487) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.335055023431778,-0.021249966695905,-0.032198425382376,-0.010490656830370,0.690004408359528,-0.268976628780365,0.590416371822357,-0.145048350095749,-0.155913010239601,0.155528128147125,-0.215495303273201,-0.005509962793440,0.030534677207470,-0.059344273060560,-0.102209739387035,-0.291121780872345) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.029094159603119,0.095290966331959,-0.016645159572363,0.254716664552689,-0.028574468567967,-0.335310399532318,0.052493654191494,-0.281591653823853,0.075243182480335,0.134532675147057,0.022372771054506,-0.016490440815687,0.042108256369829,0.123221568763256,-0.053341697901487,-0.147121980786324) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.205802381038666,0.135614827275276,0.043649312108755,0.138392120599747,-0.145535737276077,-0.098730154335499,0.324734777212143,-0.045320846140385,0.025797287002206,-0.120277486741543,-0.010664231143892,0.124803476035595,-0.161037683486938,-0.015496256761253,0.048257652670145,-0.008931955322623) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.069747924804688,-0.038019567728043,0.228828117251396,-0.030144458636642,-0.031596165150404,0.044796369969845,-0.447943389415741,0.204041570425034,-0.017304336652160,-0.140120670199394,0.129280507564545,0.103700824081898,0.123158402740955,-0.023849537596107,0.039420168846846,0.031248692423105) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.347620129585266,-0.226541042327881,0.060258727520704,-0.281398415565491,-0.318438470363617,0.215282157063484,-0.195268049836159,0.010425892658532,-0.006525432690978,0.099098771810532,-0.083052486181259,0.437150776386261,-0.099743030965328,0.208444103598595,0.081481710076332,0.034020822495222) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.038524024188519,0.095384113490582,0.134390935301781,0.004656702745706,-0.091058246791363,0.072669692337513,-0.119392871856689,-0.150586307048798,-0.157804921269417,-0.000506747688632,-0.001213179668412,-0.096159018576145,0.049335420131683,-0.214939400553703,0.073344379663467,-0.191889286041260) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.099431291222572,0.032107293605804,-0.321539252996445,0.134712651371956,-0.043266519904137,0.157631665468216,-0.061356302350760,0.199550271034241,0.210629910230637,-0.055707667022943,0.054566148668528,-0.357113152742386,0.037603896111250,-0.072878353297710,-0.159008711576462,-0.157811015844345) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.001176898833364,0.004143191035837,-0.002125634578988,-0.157604247331619,0.104196578264236,0.040001347661018,0.127996623516083,0.132250770926476,-0.070721156895161,-0.026153357699513,0.025721387937665,-0.136399254202843,-0.071207992732525,0.091408804059029,-0.054803457111120,-0.397509872913361) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.131497070193291,0.022264746949077,-0.038649510592222,0.002117536263540,0.156809985637665,-0.188419014215469,0.217089116573334,0.111152179539204,-0.016247926279902,0.058426737785339,-0.039068415760994,-0.100338876247406,0.273396462202072,-0.173204794526100,-0.061917260289192,-0.115986756980419) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.044744141399860,-0.160162433981895,0.009339925833046,0.140330731868744,0.318814605474472,-0.217850401997566,0.226142019033432,-0.072885267436504,-0.125312522053719,-0.195232555270195,0.221141263842583,-0.050019215792418,0.132211431860924,-0.076770253479481,0.046329818665981,0.039926283061504) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.093872062861919,-0.048863403499126,0.009479522705078,-0.054575458168983,0.107088297605515,-0.293534636497498,-0.003051240229979,-0.011177995242178,-0.064117260277271,-0.081071890890598,-0.068626023828983,-0.013648522086442,0.266018003225327,0.262304455041885,-0.150136142969131,0.178200215101242) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.379339098930359,-0.105636060237885,-0.168105483055115,-0.164916083216667,0.152812317013741,0.102594092488289,-0.010843976400793,0.058354251086712,0.060944873839617,0.053626090288162,-0.085368402302265,-0.007259848993272,-0.277141243219376,0.199868202209473,0.005433880724013,0.043804697692394) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.029604589566588,0.095432274043560,-0.081646539270878,0.113568976521492,-0.090041123330593,0.174169510602951,-0.420391589403152,-0.149497911334038,-0.042258806526661,-0.001379800611176,-0.286850273609161,-0.098229862749577,-0.373761385679245,-0.231565088033676,0.290376573801041,-0.439105272293091) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.035031866282225,0.150222212076187,0.000385015329812,-0.156060546636581,-0.290674328804016,-0.090411886572838,0.001284710015170,-0.406053960323334,-0.177295029163361,0.399959862232208,-0.328463017940521,0.175794154405594,-0.062669053673744,-0.083609431982040,0.156019151210785,0.043806355446577) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.074796803295612,0.115913219749928,-0.048757061362267,0.044331435114145,-0.103412576019764,0.248355209827423,-0.142826125025749,0.043210197240114,-0.001210342743434,-0.010712315328419,0.026082858443260,0.082927569746971,-0.072700865566730,0.039858132600784,-0.018960947170854,0.317401051521301) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.067942485213280,-0.099485963582993,0.071063555777073,-0.112363465130329,-0.175905466079712,0.174680650234222,-0.071362078189850,0.280921787023544,0.064846880733967,-0.016933089122176,0.158093884587288,-0.075585395097733,-0.253914356231689,0.086681559681892,-0.098695427179337,-0.081086501479149) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.036831341683865,-0.059276293963194,0.088995650410652,-0.071265146136284,-0.139001876115799,0.046448711305857,0.081712804734707,0.131205394864082,0.080504216253757,0.049281578511000,0.057214722037315,0.115586638450623,-0.117268741130829,0.010758711956441,-0.012754620984197,-0.196358844637871) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.046238418668509,0.017095485702157,0.038841132074594,0.095723658800125,-0.037984054535627,-0.099482364952564,-0.041554246097803,-0.038881115615368,-0.225301519036293,-0.197707578539848,-0.035309955477715,-0.194577068090439,-0.146057128906250,0.108227252960205,0.061320688575506,0.244918391108513) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.061955671757460,-0.057641956955194,-0.036163404583931,0.099348820745945,0.252818405628204,0.237938255071640,0.181804820895195,-0.019042667001486,0.010548953898251,-0.170634403824806,-0.316623181104660,0.134961381554604,0.037424392998219,-0.157468438148499,0.091155655682087,-0.241579517722130) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.062765873968601,-0.112601175904274,0.062536597251892,-0.070373617112637,-0.000852123834193,-0.145308539271355,0.098685562610626,-0.030472341924906,-0.073041900992393,-0.150248244404793,-0.098557315766811,-0.038309358060360,-0.040341131389141,-0.108357571065426,-0.013338417746127,-0.005443450063467) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.187042117118835,0.033215630799532,-0.049829736351967,-0.034013476222754,-0.121695116162300,-0.113905921578407,-0.095837503671646,-0.048325765877962,0.011379398405552,-0.032314985990524,-0.104744851589203,0.131362929940224,0.068099506199360,0.011074401438236,-0.083144605159760,0.172378420829773) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.060105595737696,0.180269554257393,-0.004049797076732,-0.040597230195999,0.127176046371460,0.113908007740974,0.009928422980011,0.279083639383316,0.020933678373694,0.051266953349113,-0.264751940965652,-0.176766082644463,0.098292320966721,0.071679957211018,-0.165887400507927,-0.096634440124035) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.083818778395653,0.227221444249153,-0.034274198114872,-0.013953056186438,-0.037834018468857,-0.009104463271797,-0.058921530842781,0.110635079443455,0.071505665779114,-0.051727939397097,-0.096941150724888,-0.232350140810013,-0.015817528590560,0.109530314803123,0.014373666606843,-0.075775265693665) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.148729369044304,0.021204859018326,-0.064431220293045,-0.055146902799606,0.003101756563410,-0.065648004412651,0.086846545338631,-0.047499518841505,0.022884106263518,-0.004418628755957,0.089990451931953,-0.058817237615585,0.069551728665829,0.022294990718365,-0.088714905083179,-0.160181134939194) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.005815874319524,-0.089131444692612,0.062028650194407,-0.100766167044640,0.112444043159485,-0.015877431258559,0.081313692033291,0.184641659259796,-0.085380904376507,-0.038667891174555,0.028307072818279,0.100057013332844,-0.034880556166172,-0.105032250285149,0.247717067599297,0.051833447068930) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.009612864814699,-0.044367626309395,-0.088877968490124,0.119268387556076,-0.049683630466461,0.048507604748011,0.019203834235668,0.114197842776775,-0.003536608302966,0.077706143260002,0.040230490267277,-0.011000457219779,0.049060393124819,0.057657513767481,-0.108798213303089,0.135009169578552) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.005861728917807,0.028712714090943,-0.003970535472035,-0.158944249153137,0.009265981614590,-0.077447630465031,-0.030427139252424,-0.083247244358063,0.005217697471380,-0.026308463886380,0.020776502788067,-0.054540231823921,-0.185624867677689,0.121764585375786,0.036986343562603,0.002113913418725) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.022316016256809,0.054060298949480,-0.022400794550776,-0.007887595333159,0.013256464153528,0.086880803108215,0.058147426694632,0.094673894345760,-0.155677065253258,-0.226627171039581,-0.036725237965584,-0.376821517944336,-0.233813047409058,-0.101778917014599,0.109612718224525,-0.110778108239174) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.013152350671589,0.005178689956665,-0.026968941092491,-0.234656512737274,-0.047477766871452,-0.038983788341284,-0.070281639695168,0.026391517370939,-0.208706408739090,0.195369973778725,-0.062735594809055,0.021245466545224,0.059627521783113,0.021096477285028,-0.102856211364269,0.009193795733154) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.079115778207779,-0.076641835272312,0.022521249949932,-0.103474162518978,0.070844151079655,-0.046956643462181,-0.008334909565747,-0.043403942137957,0.075279690325260,-0.002095159376040,-0.038180358707905,0.210699170827866,-0.068461276590824,-0.042757667601109,0.012201053090394,0.002361093414947) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.218029946088791,-0.094471104443073,0.087029710412025,-0.014796550385654,-0.091133296489716,-0.105491854250431,0.046183902770281,-0.158500328660011,0.168094933032990,0.160362213850021,0.016628729179502,-0.323413938283920,0.054367087781429,0.263995528221130,-0.116489492356777,0.166169062256813) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.059304699301720,-0.006024200469255,0.149069219827652,-0.044635005295277,0.044185053557158,-0.147963047027588,0.093051791191101,-0.086096167564392,0.165524706244469,0.109843820333481,0.058140989392996,-0.042128358036280,-0.047732934355736,0.011261099949479,0.022538213059306,-0.134561136364937) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.014997787773609,0.013609775342047,-0.007812523283064,-0.169292032718658,0.108909204602242,0.070278435945511,0.049364350736141,0.199056699872017,-0.069949820637703,-0.002612288109958,0.011946440674365,0.303958147764206,-0.028493916615844,-0.088339492678642,0.063960328698158,-0.154700830578804) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.048126693814993,0.035699158906937,-0.064296178519726,-0.149052903056145,-0.186799302697182,0.206430643796921,-0.108148738741875,0.098010227084160,-0.015941457822919,-0.126039773225784,-0.024187387898564,-0.064050920307636,-0.075068607926369,-0.222455456852913,0.209948524832726,0.093112163245678) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.066940285265446,-0.036222912371159,0.023972770199180,-0.128305405378342,0.153682708740234,0.063622906804085,0.056779004633427,-0.018385726958513,0.018118662759662,-0.116486996412277,0.019694361835718,0.178956508636475,0.067984372377396,-0.122457846999168,-0.014814618043602,0.169285848736763) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.121690273284912,0.106678277254105,0.009477159008384,-0.070440068840981,-0.011964322999120,0.035182859748602,-0.012135109864175,0.149849534034729,-0.052793577313423,-0.201313003897667,0.134535089135170,0.053535420447588,0.045382063835859,-0.176854401826859,0.083156146109104,0.069307416677475) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.080437935888767,0.035191625356674,0.213632270693779,0.038029454648495,-0.041806653141975,0.213944897055626,0.032748229801655,0.040811788290739,-0.024107322096825,-0.075577013194561,0.050686769187450,0.066734336316586,0.037435237318277,-0.032285004854202,0.022571008652449,-0.128403633832932) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.215903326869011,-0.414324671030045,0.070786051452160,-0.172618448734283,0.079166375100613,0.103099800646305,-0.028635747730732,-0.012094903737307,0.068789251148701,0.040674045681953,0.056248657405376,0.067751154303551,0.070646651089191,0.058154497295618,0.061648115515709,-0.094528250396252) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.124373182654381,0.030627306550741,-0.457388222217560,0.241054370999336,0.102858327329159,-0.154133364558220,-0.174870118498802,-0.099310219287872,0.005343311000615,0.028169650584459,-0.046054847538471,-0.146983206272125,-0.218709677457809,-0.142629235982895,-0.034954905509949,0.056350961327553) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.193523645401001,0.501428127288818,-0.263556659221649,0.128466770052910,0.011205808259547,-0.315958291292191,0.010682038031518,-0.105147212743759,0.095027789473534,-0.104980356991291,-0.141216546297073,-0.245710313320160,0.064920142292976,-0.449918776750565,0.081188932061195,-0.091092996299267) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.048998508602381,0.249091237783432,-0.169345885515213,-0.213023379445076,-0.045708652585745,0.234067499637604,-0.001102931564674,0.054310236126184,-0.026735531166196,0.001316087669693,-0.003888408420607,0.133971288800240,-0.166143387556076,-0.005923960357904,-0.042000204324722,-0.061372216790915) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.088917039334774,-0.277580261230469,-0.025196693837643,-0.331936717033386,-0.038847237825394,0.046148639172316,0.187047943472862,0.190808430314064,0.108288817107677,-0.007266762666404,0.066877961158752,0.312393128871918,0.008151108399034,0.228394761681557,-0.129648610949516,0.008894012309611) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.027154399082065,-0.081847429275513,0.316113442182541,0.171339496970177,0.050115238875151,-0.110573507845402,0.101274609565735,-0.058977935463190,0.018190216273069,-0.007203822955489,0.003883960889652,0.153208896517754,0.047707796096802,0.111699618399143,-0.148034691810608,-0.038005448877811) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.053441084921360,-0.096075482666492,0.137532755732536,0.191883176565170,-0.017617635428905,-0.041574716567993,-0.117072813212872,-0.213389739394188,0.081231310963631,-0.106486804783344,-0.023425586521626,-0.039284456521273,-0.042598981410265,-0.078352347016335,-0.008439715020359,0.048778317868710) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.250612556934357,-0.391604125499725,0.323108375072479,-0.388523966073990) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.186112597584724,0.010509693995118,-0.237691849470139,-0.017262730747461);
res += mat4(0.003931932151318,-0.096030674874783,0.003977036569268,-0.042726192623377,-0.023879265412688,0.000116171475383,0.028345258906484,0.067420415580273,-0.069103784859180,-0.068579211831093,0.024092253297567,-0.035510446876287,-0.069743834435940,-0.083283886313438,0.260625809431076,0.001096741179936) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.006476832553744,-0.129821449518204,-0.013708897866309,-0.007601116318256,-0.101925432682037,-0.022443519905210,-0.001770146191120,0.137204080820084,0.047160282731056,-0.094845250248909,0.057333014905453,-0.074998073279858,-0.039511729031801,-0.095303922891617,0.240174576640129,0.087571077048779) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.023523790761828,-0.252148032188416,0.183951899409294,0.033514652401209,0.054760470986366,0.089444868266582,0.071772508323193,-0.110453076660633,0.009333703666925,-0.042941190302372,-0.136706531047821,-0.091946780681610,0.141245365142822,-0.002129972446710,-0.060368128120899,-0.003512423252687) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.095883503556252,-0.146233454346657,-0.104610756039619,0.013824978843331,-0.109508246183395,-0.031970735639334,-0.009812852367759,-0.084657214581966,0.084510549902916,-0.032299682497978,0.031406927853823,0.016674477607012,-0.159317150712013,0.228650972247124,-0.083135418593884,0.063940681517124) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.084170870482922,-0.080340154469013,-0.044848565012217,-0.000347261666320,0.293527126312256,0.145632520318031,-0.181340932846069,0.015253969468176,-0.132888272404671,0.215582683682442,-0.029019938781857,0.132593944668770,-0.279449731111526,0.165457800030708,-0.107349567115307,-0.188210740685463) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.108445480465889,-0.095026865601540,-0.035101495683193,-0.106383562088013,-0.139791384339333,-0.067483641207218,0.215835139155388,-0.096761442720890,0.024729343131185,0.101778946816921,-0.169912144541740,0.054516822099686,0.017588401213288,0.061301432549953,-0.163515403866768,0.205121308565140) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.009883997030556,-0.061933785676956,0.072414666414261,0.076024450361729,-0.042749583721161,-0.201640561223030,0.015507456846535,0.038752511143684,0.009269502945244,-0.089511491358280,-0.047001227736473,-0.013349774293602,0.072919882833958,-0.138115882873535,0.052999712526798,0.052779462188482) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.030884768813848,0.008422654122114,0.081863604485989,0.294904887676239,-0.258608847856522,0.383902162313461,-0.034268427640200,-0.223721772432327,0.047202009707689,0.277374953031540,-0.027612168341875,0.015415880829096,0.164008453488350,-0.094678036868572,-0.044629596173763,0.088905721902847) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.131182968616486,-0.208851009607315,-0.168660134077072,-0.233942285180092,0.090282686054707,-0.245534345507622,-0.020438486710191,0.228053137660027,-0.018507327884436,-0.213966786861420,-0.295934081077576,0.124113388359547,0.018233029171824,0.043427251279354,-0.019546343013644,-0.038121469318867) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.066161662340164,-0.028770359233022,-0.082383856177330,0.041617803275585,-0.128249004483223,-0.138643413782120,0.126079261302948,0.012093697674572,0.006303529720753,0.050093539059162,-0.019490687176585,0.018535818904638,-0.041464317589998,-0.117581784725189,0.056511256843805,-0.030188355594873) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.079762376844883,-0.175062417984009,0.273952960968018,-0.023634769022465,-0.469753921031952,-0.142955318093300,0.253020107746124,0.057063300162554,0.184161111712456,-0.074307188391685,-0.103379696607590,0.101021364331245,-0.030127210542560,0.056988544762135,0.014795254915953,0.025195207446814) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.115858852863312,-0.120178148150444,-0.105634488165379,0.049110572785139,-0.249732330441475,-0.141832813620567,0.056509483605623,-0.075019970536232,0.036890696734190,-0.085212513804436,-0.000820848450530,0.053625185042620,0.022929254919291,-0.188040614128113,-0.039376549422741,-0.075725890696049) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.037613924592733,-0.027772814035416,-0.158604130148888,0.045965511351824,-0.187450528144836,-0.247447550296783,0.116862118244171,0.001649235608056,-0.205025181174278,-0.187658071517944,0.116514153778553,-0.106972388923168,0.088846817612648,-0.058723226189613,-0.029889224097133,-0.043330304324627) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.034081928431988,0.008151320740581,0.192992940545082,0.003184700617567,0.793277323246002,-0.193614885210991,-0.533905029296875,0.495090812444687,-0.173186182975769,0.147856965661049,0.154247641563416,-0.224150657653809,0.019350428134203,-0.063737742602825,0.010557563975453,0.010316369123757) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.363006234169006,0.224240094423294,0.011584520339966,-0.006881266366690,-0.344643324613571,0.086207397282124,0.249268382787704,0.228614628314972,0.237510427832603,0.171326234936714,-0.372692227363586,-0.048615030944347,0.110270880162716,0.051277901977301,0.054529123008251,-0.163190528750420) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.029926985502243,-0.024011820554733,-0.040740162134171,-0.017480598762631,0.030367787927389,-0.225851729512215,-0.108307480812073,0.102864086627960,0.003636422334239,-0.108894728124142,0.018384788185358,0.077034220099449,0.077668860554695,-0.091051593422890,0.066598847508430,-0.005482841283083) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.270086973905563,-0.149076730012894,-0.122193433344364,0.133283138275146,-0.159013330936432,0.683408796787262,-0.088011123239994,-0.387306272983551,0.002017995575443,-0.372587382793427,0.100744940340519,0.175779074430466,-0.019300432875752,0.077608674764633,-0.068118847906590,0.108297094702721) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.056036379188299,0.090355195105076,0.001049205660820,-0.176003962755203,-0.074014507234097,0.022968390956521,0.093411296606064,-0.110269688069820,0.015237784013152,0.411940455436707,-0.042134571820498,-0.225058674812317,-0.028110492974520,0.023536190390587,-0.037964571267366,-0.087414853274822) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.069395244121552,-0.078722685575485,0.119000189006329,-0.079460531473160,0.193724215030670,0.034457944333553,-0.159024178981781,0.193169921636581,-0.050997290760279,0.157016053795815,0.002410012064502,0.034446816891432,0.035984899848700,0.084057338535786,-0.164259582757950,0.022561511024833) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.036531239748001,-0.102419614791870,0.150523528456688,0.173052102327347,0.128254398703575,-0.077916815876961,-0.184382647275925,0.139277860522270,-0.182315170764923,0.203678205609322,-0.048252914100885,-0.008141011931002,0.127591326832771,-0.082424134016037,-0.128089100122452,-0.228791311383247) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.027442960068583,0.059286080300808,0.035996928811073,-0.046357370913029,-0.030461506918073,-0.174989238381386,0.127861186861992,0.191028788685799,-0.016362298280001,0.063597477972507,-0.089951314032078,-0.035740200430155,0.173952445387840,-0.049483764916658,-0.075995557010174,-0.012789934873581) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.071772240102291,-0.032938968390226,0.034620873630047,-0.030376285314560,0.366348356008530,-0.014888306148350,-0.266150951385498,-0.004322435241193,-0.141309455037117,0.246789276599884,0.060442555695772,-0.092491999268532,0.159152284264565,0.118881225585938,0.256219357252121,-0.174883440136909) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.016138980165124,-0.041714563965797,0.035705190151930,-0.006352424621582,0.093875832855701,-0.097650654613972,-0.090484306216240,0.185362160205841,-0.119874171912670,-0.042928338050842,0.148564189672470,-0.097233682870865,0.242125481367111,-0.252173840999603,0.395479977130890,-0.210136488080025) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.093487344682217,-0.052146054804325,-0.232899531722069,-0.011023078113794,-0.219706252217293,-0.075891084969044,0.173267245292664,0.121463544666767,0.120019592344761,0.085407592356205,-0.239207088947296,-0.020509863272309,0.250915288925171,0.218359038233757,0.054278180003166,-0.203059405088425) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.123113974928856,-0.194085553288460,0.070222944021225,0.106277406215668,0.051494054496288,0.262811452150345,-0.290630459785461,-0.233292236924171,0.038556940853596,0.001609298400581,-0.081399798393250,0.058444410562515,0.095086164772511,0.055114544928074,0.072559937834740,0.205887734889984) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.087912097573280,0.200635060667992,0.157921433448792,-0.110169313848019,-0.073061861097813,0.491378486156464,-0.237667664885521,-0.431391686201096,0.200248748064041,0.134641036391258,0.221352204680443,-0.006876922678202,-0.082512930035591,-0.291535735130310,0.029305210337043,0.511736869812012) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.054342165589333,0.032517574727535,-0.021657774224877,-0.043159186840057,-0.122915342450142,0.052849560976028,-0.059492379426956,-0.268710523843765,0.222239002585411,0.118743091821671,0.070587955415249,-0.384185492992401,0.043158531188965,0.446967542171478,0.031423777341843,0.110093452036381) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.024937253445387,-0.099989257752895,-0.021795000880957,0.064997866749763,-0.038638744503260,-0.122380949556828,0.054402779787779,-0.046695329248905,0.051819089800119,-0.054155949503183,-0.047079205513000,-0.137343794107437,-0.085778489708900,0.183082744479179,-0.025780148804188,0.040399882942438) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.088988050818443,-0.123481087386608,-0.067452907562256,0.159127637743950,0.172287002205849,0.176743134856224,-0.094069398939610,-0.031144537031651,0.097750060260296,0.136942163109779,-0.068430490791798,-0.040097117424011,-0.248944357037544,0.286912262439728,-0.019090045243502,-0.309500247240067) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.002403875580058,-0.046418476849794,0.015577044337988,-0.011315030977130,-0.094084277749062,0.042833883315325,0.059842921793461,-0.031387530267239,-0.023360233753920,0.114834062755108,-0.230905994772911,-0.027805119752884,0.248737409710884,-0.231258809566498,0.009200123138726,0.224963620305061) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.074665084481239,-0.001354522537440,-0.140255525708199,-0.044369686394930,0.250221163034439,-0.015799805521965,-0.088872633874416,-0.143396466970444,-0.074924610555172,-0.021389722824097,0.023652350530028,0.480858027935028,-0.080709502100945,-0.145262762904167,-0.082923449575901,0.009571620263159) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.104775391519070,0.044038515537977,-0.073502324521542,-0.166972845792770,0.398808032274246,0.099171370267868,0.081114903092384,0.070094846189022,0.000636568467598,-0.354402095079422,0.261836111545563,0.212252214550972,0.363263964653015,-0.339102238416672,0.014986192807555,0.379736304283142) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.004132997710258,-0.014091475866735,-0.039478216320276,-0.002619849750772,-0.067248679697514,-0.081547029316425,0.089169301092625,0.001820375793613,0.125423997640610,0.017183220013976,0.070526793599129,0.065967626869678,-0.169518858194351,0.151439845561981,0.222763210535049,-0.112529382109642) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.118815056979656,-0.030252151191235,0.114040359854698,-0.086176134645939,-0.148414626717567,-0.048233486711979,-0.149016112089157,-0.143260419368744,0.028834002092481,0.218939602375031,0.089407905936241,-0.248637944459915,-0.062568306922913,-0.097621798515320,0.014011656865478,-0.014688950963318) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.098094157874584,0.206788003444672,-0.061274483799934,-0.103536948561668,0.112197145819664,0.098630622029305,0.059977281838655,0.077168814837933,0.012023804709315,-0.173581644892693,-0.036484498530626,-0.201577082276344,-0.231006935238838,0.296126216650009,-0.024977106601000,-0.245436623692513) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.096030287444592,0.116610035300255,0.121906168758869,0.077493913471699,-0.039020642638206,0.005336296278983,-0.045210968703032,0.039947148412466,-0.099493451416492,0.021517902612686,-0.071437314152718,-0.017970897257328,0.145799338817596,-0.084837853908539,0.019067354500294,-0.028844030573964) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.078736066818237,-0.057999115437269,-0.102445684373379,-0.017719907686114,0.017899079248309,0.154361188411713,-0.069176226854324,-0.021059863269329,-0.040748998522758,0.055366974323988,-0.036926969885826,0.045943312346935,-0.067329257726669,0.003537241136655,-0.024102451279759,-0.098732590675354) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.031155541539192,-0.079520344734192,0.052912879735231,0.081010043621063,-0.015184539370239,0.081598520278931,-0.165756955742836,-0.065748475492001,-0.107132799923420,0.062309134751558,-0.039027564227581,-0.056870572268963,0.000670971930958,-0.018929576501250,0.052545674145222,-0.036157958209515) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.082649953663349,0.055700223892927,0.001602798234671,-0.013693338260055,-0.079608552157879,0.224027410149574,0.003185618203133,0.056059002876282,-0.052774190902710,0.113897435367107,-0.010403060354292,-0.061154711991549,-0.072859130799770,-0.161407738924026,0.084618709981441,-0.012281686067581) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.010698636993766,0.190863177180290,0.071569532155991,-0.027263674885035,0.037588261067867,-0.040527958422899,-0.053307145833969,0.055078014731407,0.130617588758469,-0.058420576155186,-0.008682170882821,-0.048095434904099,-0.049977384507656,-0.026382895186543,-0.016533741727471,-0.069022402167320) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.002306642010808,-0.169603750109673,-0.096027269959450,-0.255646795034409,-0.102443724870682,-0.109590031206608,0.015248349867761,0.007901744917035,0.018143730238080,-0.098622083663940,0.139639645814896,-0.027576960623264,-0.089292638003826,-0.280679136514664,-0.015448978170753,-0.011720177717507) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.190442979335785,-0.269688665866852,-0.191159322857857,-0.094497568905354,-0.140642881393433,-0.246858909726143,-0.022513531148434,0.099672406911850,0.085873857140541,-0.188431575894356,0.101952902972698,-0.063090637326241,-0.094679236412048,0.151420906186104,-0.118508093059063,0.103877656161785) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.007349591702223,-0.037398174405098,-0.008853699080646,0.061634883284569,0.114581942558289,0.069597765803337,0.076243102550507,-0.028179038316011,-0.048817157745361,0.066799461841583,0.082524172961712,-0.056190129369497,-0.040868278592825,-0.113062314689159,-0.058342501521111,0.126895815134048) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.034585297107697,-0.189961165189743,-0.127511247992516,0.143799006938934,0.110007137060165,-0.075067274272442,0.024296715855598,0.049670081585646,0.034318804740906,0.044170115143061,0.034146707504988,0.110005110502243,-0.005530522204936,0.323492735624313,-0.039960172027349,0.068879939615726) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.058410760015249,0.032747462391853,-0.070754103362560,0.093206070363522,0.121348336338997,-0.092850267887115,0.059064805507660,0.000650822999887,-0.053304173052311,-0.101388290524483,-0.115922883152962,0.107705257833004,0.024327166378498,0.032079339027405,0.056730091571808,0.101442702114582) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.082781329751015,-0.036482896655798,-0.063343383371830,-0.007614111062139,-0.040119279175997,-0.025018563494086,0.014947831630707,0.044172968715429,0.009253902360797,-0.129896610975266,-0.135884404182434,-0.047918837517500,0.011696280911565,0.118697024881840,-0.007427273783833,0.049026276916265) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.117444150149822,-0.041879817843437,0.046439580619335,0.063680566847324,0.062522470951080,0.018581239506602,-0.189003720879555,-0.065674580633640,0.002513533923775,0.006062153261155,-0.139880776405334,-0.036279223859310,-0.095767542719841,0.077171035110950,-0.099726490676403,-0.038733892142773) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.192625150084496,-0.085729144513607,0.037048481404781,-0.002294547390193,-0.040849942713976,-0.099016278982162,0.069801367819309,0.034479252994061,0.025830836966634,-0.037910826504230,-0.099884845316410,0.008283685892820,-0.043629549443722,0.010432722046971,0.014646558091044,-0.024992758408189) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.087281093001366,-0.088962353765965,-0.197963967919350,0.140073567628860,0.042905706912279,-0.050982248038054,0.110223501920700,0.081028290092945,0.040178183466196,0.032606214284897,0.161287412047386,0.357579737901688,0.095273956656456,-0.019868697971106,-0.135739028453827,0.093040466308594) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.151528894901276,0.019353209063411,-0.013310889713466,0.193829208612442,-0.244244322180748,-0.014550900086761,0.179119214415550,-0.248494431376457,0.122890695929527,0.012563292868435,-0.030559480190277,-0.012726924382150,-0.040138855576515,-0.004736979026347,-0.073855832219124,0.152326256036758) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.202818810939789,-0.139954641461372,-0.026614863425493,0.108557179570198,0.117124557495117,0.111205719411373,-0.004204209428281,-0.141340792179108,0.036645859479904,-0.052101079374552,-0.059904098510742,0.037149421870708,-0.083097368478775,-0.028547262772918,-0.041854817420244,0.048762168735266) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.187179237604141,0.134845614433289,0.048226073384285,-0.289063453674316,0.127819016575813,0.123946540057659,-0.155849710106850,0.010536698624492,0.101354986429214,-0.141777992248535,-0.019355047494173,-0.122578211128712,-0.011964941397309,0.090058356523514,0.160113587975502,-0.023058639839292) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.125854656100273,0.399885058403015,-0.134561240673065,-0.957895815372467,0.079359255731106,-0.275329619646072,0.027657041326165,0.240342691540718,0.074838556349277,-0.004281659610569,-0.086910426616669,0.016570752486587,0.051714736968279,-0.069226436316967,0.075219996273518,-0.041648406535387) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.133038386702538,-0.046555019915104,-0.107662208378315,0.115133345127106,0.046419128775597,0.002404366387054,0.054932113736868,0.094897985458374,0.046130582690239,-0.048470627516508,0.011908967979252,-0.035085011273623,0.105536483228207,0.016328688710928,0.135793358087540,-0.041012961417437) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.861540198326111,-0.124894410371780,0.668107986450195,-0.492993831634521) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.036708928644657,0.112500399351120,-0.013801833614707,-0.037831082940102);
res += mat4(0.017911985516548,0.007123849354684,0.159173920750618,-0.026023125275970,0.234072133898735,0.224560990929604,0.073243893682957,-0.016436994075775,-0.060396581888199,0.079780779778957,0.003101869719103,0.088595509529114,-0.059938151389360,0.140283361077309,-0.016609726473689,0.163086697459221) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.191603988409042,0.019523167982697,0.118655420839787,-0.265888422727585,-0.081706650555134,-0.234360083937645,-0.070198230445385,0.104775592684746,-0.069515801966190,-0.264780670404434,-0.043587736785412,0.081167861819267,0.053577914834023,-0.026918860152364,-0.109903335571289,0.096071742475033) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.149895772337914,0.295975029468536,-0.084765404462814,-0.049336247146130,-0.297079890966415,0.109601207077503,-0.109828941524029,0.073487676680088,-0.123725853860378,0.039484560489655,-0.070451140403748,0.155292153358459,0.042477067559958,-0.076618321239948,-0.135184928774834,0.079494334757328) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.040353886783123,0.009220675565302,-0.069286383688450,-0.076642230153084,0.318333417177200,-0.250988274812698,0.055194132030010,0.052802663296461,0.026752686128020,-0.117149159312248,0.132479384541512,0.092082709074020,-0.155235081911087,-0.089889392256737,0.082401759922504,0.137384593486786) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.108205966651440,-0.168991908431053,-0.055096071213484,-0.146150976419449,-0.172268956899643,0.094226174056530,-0.085351653397083,-0.249424099922180,-0.201712250709534,0.199840322136879,-0.118913538753986,0.026314608752728,0.016132930293679,-0.143305987119675,-0.015496931038797,0.054111033678055) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.003924303688109,-0.001627299585380,0.425277680158615,0.148009940981865,0.027382528409362,-0.155872642993927,0.302862256765366,0.336153984069824,-0.107244759798050,-0.004031912889332,-0.320978015661240,0.217705398797989,-0.016703372821212,0.033779773861170,0.061507549136877,-0.196392819285393) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.078760765492916,-0.088141970336437,0.218542963266373,-0.069488495588303,0.012958744540811,0.077732130885124,-0.103650458157063,-0.055859420448542,-0.137654945254326,0.103549145162106,-0.023558510467410,-0.050151724368334,0.131064578890800,-0.101717516779900,0.047024991363287,0.104192867875099) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.116384282708168,0.071293041110039,0.022908359766006,-0.102617070078850,-0.096183612942696,0.140636697411537,0.029426407068968,-0.076091244816780,-0.104427732527256,-0.125496417284012,0.068659111857414,0.078779861330986,0.029751772060990,0.009437465108931,-0.039673790335655,0.002912152791396) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.053175047039986,-0.031206864863634,0.224685803055763,-0.113797061145306,0.117904357612133,-0.130388110876083,0.000569099502172,-0.211316704750061,0.174392864108086,-0.154611244797707,-0.160548686981201,-0.045888464897871,-0.074534125626087,-0.095257997512817,0.048136003315449,0.077321238815784) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.027755687013268,-0.314599692821503,0.035697307437658,0.038000028580427,-0.325557917356491,0.142215296626091,0.081990882754326,0.024350186809897,-0.342175185680389,-0.057415794581175,0.040861781686544,-0.127381280064583,0.020777847617865,0.038150422275066,0.029439067468047,-0.154563769698143) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.179918989539146,0.210377469658852,-0.107168756425381,0.154349371790886,0.376964569091797,-0.202939510345459,-0.060384355485439,-0.025717882439494,-0.080422334372997,-0.076339110732079,0.089702032506466,-0.061152908951044,0.128048270940781,-0.072549350559711,-0.176130831241608,-0.024238327518106) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.060764379799366,0.246593877673149,0.023095577955246,-0.105754517018795,-0.038575690239668,-0.244319826364517,-0.150834366679192,0.225664541125298,0.177525848150253,-0.022029975429177,-0.086787372827530,0.132727190852165,0.333077430725098,-0.012262611649930,-0.014863528311253,0.033779922872782) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.016812020912766,0.085312962532043,-0.121703736484051,0.063189506530762,0.439599961042404,-0.108749471604824,0.215272247791290,-0.176586523652077,-0.082373917102814,0.042548872530460,0.148789063096046,0.041178837418556,0.241333067417145,-0.272604703903198,-0.006735058967024,-0.025599483400583) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.065802454948425,0.033033460378647,-0.129855677485466,-0.083201967179775,0.032306421548128,0.215144023299217,-0.064213015139103,-0.163745805621147,0.144118487834930,0.051639899611473,-0.249852225184441,-0.082331784069538,0.180798143148422,-0.023031190037727,-0.214225739240646,-0.025389650836587) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.002123365877196,-0.074415758252144,0.157868251204491,-0.112640291452408,-0.267660796642303,0.074070073664188,0.173029765486717,0.503774046897888,-0.089918613433838,0.132638216018677,0.023221557959914,-0.395761221647263,0.123520940542221,-0.091344930231571,0.164634644985199,0.013040101155639) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.235518649220467,-0.197828143835068,0.326601892709732,-0.011131770908833,0.132270425558090,-0.134153723716736,0.016935262829065,-0.059456937015057,0.314934730529785,-0.269330918788910,0.097084313631058,0.010716109536588,0.150963231921196,0.004377700388432,-0.102185457944870,0.065754719078541) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.172251567244530,-0.091524884104729,-0.487932533025742,-0.176941111683846,-0.267640709877014,-0.178295195102692,0.178531885147095,0.085060633718967,0.059333235025406,0.168673172593117,0.040688227862120,-0.092410922050476,-0.074130803346634,0.050069041550159,-0.144699931144714,-0.233895152807236) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.163235172629356,-0.038407478481531,0.216756746172905,0.235262721776962,0.057190075516701,0.153120398521423,-0.198045819997787,-0.057882454246283,-0.123578086495399,-0.044327892363071,0.124588049948215,-0.095474541187286,-0.174981713294983,-0.151787385344505,0.027676533907652,-0.087128259241581) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.004815900698304,-0.185438364744186,0.179907873272896,-0.128493160009384,0.126553371548653,-0.024599719792604,-0.046451836824417,-0.121738672256470,0.274078667163849,-0.124512657523155,-0.032959911972284,0.164871066808701,0.079335585236549,0.332903027534485,0.006179081276059,0.036554485559464) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.217762067914009,-0.059134840965271,-0.015495030209422,-0.216457262635231,0.205724909901619,0.029586318880320,-0.107383310794830,0.091574899852276,0.022307084873319,-0.233929723501205,-0.028901847079396,-0.032866075634956,-0.235822111368179,0.288714498281479,0.210190877318382,0.155140668153763) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.069305077195168,-0.054975721985102,-0.052393399178982,0.069656476378441,-0.179138809442520,0.160170003771782,-0.151333048939705,0.211016356945038,-0.070299789309502,0.088956676423550,-0.069836989045143,-0.008452452719212,0.018182139843702,0.135011449456215,-0.015689952298999,0.006238612812012) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.078854158520699,-0.306022912263870,-0.098076768219471,0.009926727041602,0.120052911341190,0.105975426733494,0.006892684847116,-0.037113949656487,0.043539389967918,0.070747561752796,0.178951889276505,0.134679600596428,-0.120604321360588,0.519395530223846,-0.048534944653511,-0.013018781319261) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.169966161251068,0.095513664186001,-0.043488085269928,-0.089709304273129,-0.065918415784836,0.063450030982494,0.136650800704956,0.212995991110802,-0.105208732187748,0.103906936943531,0.159865677356720,-0.110896177589893,-0.161583065986633,-0.172424927353859,-0.134064033627510,0.094905093312263) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.032078154385090,-0.022086499258876,-0.218646004796028,-0.087728776037693,-0.145612597465515,0.113913781940937,-0.092399157583714,0.303394317626953,0.024376310408115,-0.066403664648533,0.200812175869942,-0.009365599602461,0.315742999315262,-0.109883725643158,-0.137951508164406,-0.140846371650696) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.034018147736788,0.118204414844513,-0.156052514910698,-0.150392010807991,-0.042284227907658,-0.015939131379128,0.058963440358639,-0.107477292418480,-0.041579589247704,0.052779037505388,-0.118273414671421,0.180689185857773,-0.001500301063061,-0.155391946434975,-0.101748965680599,-0.028376596048474) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.058778963983059,-0.064414016902447,0.046273346990347,-0.009471246041358,-0.132024884223938,-0.137715101242065,0.146758213639259,-0.167176350951195,0.067787773907185,0.009443135000765,-0.243636056780815,0.172732993960381,0.147267743945122,-0.219568997621536,-0.316797107458115,0.202501818537712) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.111951328814030,-0.057575225830078,-0.081498667597771,-0.027973374351859,0.101462557911873,0.092124044895172,-0.261817038059235,-0.101193442940712,0.089260883629322,-0.068362027406693,-0.192346200346947,-0.128823056817055,0.036051206290722,-0.354694455862045,0.241125851869583,0.096534512937069) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.000282493885607,-0.045490939170122,0.096704684197903,-0.018555207177997,0.034155201166868,-0.019333660602570,-0.042315851897001,-0.142306357622147,0.140714541077614,-0.004812839441001,-0.110050812363625,0.083354055881500,0.041680295020342,-0.126673623919487,0.169301062822342,0.081418335437775) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.010129109025002,0.087953470647335,-0.044176518917084,-0.172194629907608,0.027583664283156,-0.374875962734222,0.230719760060310,-0.169897094368935,0.226513072848320,0.205055072903633,-0.041703894734383,0.256127476692200,0.032019216567278,0.119031056761742,-0.010372072458267,-0.060421682894230) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.045267648994923,-0.096678026020527,-0.018023509532213,0.139510184526443,-0.033135309815407,-0.072015218436718,-0.058273363858461,0.058224420994520,-0.111026152968407,0.037975985556841,-0.090421162545681,-0.020323237404227,0.002727876417339,0.035428982228041,-0.071732342243195,-0.169022247195244) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.031376164406538,0.078539587557316,-0.095639705657959,-0.027606615796685,0.070239111781120,0.021488070487976,-0.149370983242989,-0.083237856626511,0.053984727710485,0.057089220732450,-0.127533525228500,-0.146775975823402,0.410746365785599,-0.136156007647514,0.015837915241718,0.046973999589682) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.101830728352070,0.015218391083181,-0.058157727122307,0.176700532436371,0.105654992163181,-0.178745999932289,0.228730276226997,-0.218709796667099,0.049741901457310,0.098415166139603,-0.173895105719566,-0.021566264331341,-0.134355619549751,0.169891506433487,0.069412454962730,-0.093374930322170) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.020210169255733,-0.204709351062775,-0.105237156152725,-0.078100562095642,-0.022801665589213,-0.154213145375252,0.240390330553055,0.106002628803253,0.037305276840925,-0.031852737069130,0.036281283944845,0.167271450161934,-0.052186612039804,-0.174434483051300,-0.082720354199409,0.426706433296204) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.107558824121952,-0.019608112052083,-0.057919830083847,0.013524579815567,0.048228088766336,0.130487531423569,0.021871378645301,-0.161917060613632,-0.125460386276245,0.199153378605843,-0.131638854742050,0.007678081747144,-0.297292530536652,0.034482374787331,-0.073634929955006,0.001531737507321) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.026574602350593,0.058622818440199,-0.026637567207217,0.049228254705667,-0.047382228076458,0.011205401271582,-0.013719437643886,-0.089538171887398,-0.111479260027409,-0.092795595526695,-0.008386486209929,0.002083282917738,-0.195343539118767,-0.145998910069466,0.259090662002563,0.024429265409708) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.038892332464457,0.004151837434620,-0.095353186130524,-0.126333385705948,-0.014505313709378,-0.069460757076740,0.168997153639793,0.086712434887886,0.057611208409071,0.018723661080003,-0.085988208651543,-0.059040132910013,0.269408702850342,0.259456187486649,-0.144210547208786,-0.260767132043839) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.015152584761381,0.189280286431313,-0.112786591053009,-0.304677426815033,0.119526177644730,0.061462398618460,0.023085052147508,0.009909044019878,0.065765619277954,-0.041338451206684,0.026441233232617,0.078261703252792,-0.051275748759508,0.016821790486574,0.049529008567333,-0.060414433479309) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.010203608311713,0.102885998785496,0.078584127128124,-0.010124952532351,0.167711451649666,-0.136275067925453,-0.072611041367054,0.112622916698456,-0.056142814457417,-0.113337203860283,-0.015382479876280,0.012645432725549,0.370948135852814,-0.029286412522197,-0.004606920760125,-0.114108465611935) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.062243908643723,0.074763588607311,0.002326865214854,-0.195738911628723,0.051157340407372,0.124902144074440,0.091009281575680,-0.107928454875946,-0.458680123090744,-0.043305803090334,0.086043670773506,-0.067970134317875,-0.220078304409981,-0.059790987521410,-0.090282008051872,0.463422298431396) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.178497552871704,0.149781063199043,-0.031255114823580,-0.283615291118622,-0.197544723749161,0.105386503040791,-0.136363014578819,-0.026156095787883,-0.071559488773346,0.165998831391335,-0.099645860493183,-0.046598911285400,0.349362194538116,-0.341374337673187,0.070664353668690,-0.108836628496647) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.061630345880985,0.055746767669916,-0.225458353757858,-0.060716979205608,0.120215021073818,-0.168604388833046,0.035060953348875,0.162026420235634,-0.024147346615791,0.027368081733584,0.166852936148643,0.126175001263618,-0.196700751781464,0.091399319469929,0.112534776329994,0.003863081103191) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.003995523788035,0.184982553124428,-0.176008328795433,-0.220109581947327,0.028258945792913,-0.175449132919312,0.028468394652009,-0.122504726052284,0.235993131995201,-0.026939535513520,-0.063114970922470,-0.046826649457216,0.111836887896061,-0.187360227108002,-0.103211462497711,0.313061147928238) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.041312526911497,0.075601346790791,-0.058592446148396,-0.090126268565655,0.013290267437696,0.081189416348934,-0.014081827364862,0.019203424453735,0.163070768117905,-0.078977599740028,-0.001255266368389,-0.046627197414637,-0.176318824291229,0.158221319317818,-0.188464492559433,-0.068544931709766) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.042272008955479,0.056946098804474,0.056969989091158,-0.063178591430187,0.186959177255630,-0.147342935204506,0.009929912164807,0.201325684785843,-0.086039833724499,0.023432042449713,0.119558691978455,0.006848235148937,0.132965862751007,0.089196205139160,0.210430249571800,-0.101882167160511) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.124158918857574,0.054519005119801,-0.100712642073631,-0.075696997344494,0.171137273311615,0.007614171598107,-0.107057325541973,-0.013713744468987,0.187531128525734,0.004921234212816,-0.165749445557594,-0.095599092543125,0.368149638175964,0.099785648286343,0.064753010869026,-0.191073149442673) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.064057394862175,-0.020168006420135,-0.104547560214996,-0.109771795570850,0.128327831625938,0.270160615444183,-0.088556624948978,-0.040324669331312,-0.016929453238845,-0.034758761525154,-0.054003644734621,-0.054113309830427,0.206920936703682,-0.021910758689046,-0.099810533225536,-0.041700795292854) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.138040184974670,-0.047362364828587,0.084415934979916,-0.015368687920272,-0.057904865592718,-0.472845256328583,-0.129452213644981,0.034101620316505,-0.109991833567619,-0.101670652627945,-0.122780218720436,-0.002660439815372,-0.039773903787136,-0.051547497510910,-0.010756921954453,0.218934357166290) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.024305425584316,-0.194421425461769,-0.189561352133751,0.230986773967743,-0.032010108232498,-0.035176374018192,-0.209413215517998,0.039375420659781,-0.063530027866364,-0.059728067368269,-0.133754044771194,0.015567223541439,0.078881658613682,-0.004232012666762,-0.060057777911425,0.070995867252350) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.074245914816856,-0.054900661110878,0.031538065522909,-0.105135947465897,-0.244749769568443,-0.008105011656880,-0.029110595583916,0.106186486780643,-0.023417385295033,0.293096601963043,-0.103592097759247,0.167361572384834,0.021718421950936,-0.006115415133536,-0.241053670644760,0.059542279690504) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.323404848575592,0.201265186071396,0.096312806010246,-0.025825008749962,0.019337531179190,0.091472238302231,-0.138308063149452,0.120877817273140,-0.137286618351936,-0.146578475832939,0.001715301070362,0.202711805701256,-0.013216285966337,0.091999493539333,-0.061438519507647,0.338391602039337) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.182131484150887,-0.138895407319069,-0.181898519396782,0.431512415409088,0.117567263543606,-0.049593057483435,0.278701931238174,-0.443398207426071,0.051502853631973,0.124647364020348,-0.095752738416195,-0.080302000045776,-0.053439885377884,0.096451543271542,0.107839673757553,0.244015619158745) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.277480721473694,-0.168626174330711,0.080425307154655,-0.155837029218674,-0.184396311640739,-0.029821047559381,0.026107760146260,-0.050680708140135,-0.124843224883080,0.033749967813492,0.124587215483189,0.124760992825031,-0.039585873484612,0.049670331180096,-0.090590968728065,-0.022640321403742) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.028955228626728,-0.051914084702730,-0.000269064650638,-0.277227222919464,0.187562793493271,-0.026626108214259,0.011152460239828,0.230147227644920,-0.069920212030411,-0.095970697700977,0.026652252301574,0.152720794081688,-0.149811491370201,-0.263670921325684,0.015766361728311,0.075923770666122) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.260959118604660,-0.130314633250237,-0.152014896273613,-0.229537636041641,0.102638654410839,0.175946101546288,-0.106100060045719,-0.017489112913609,-0.143168345093727,0.109387777745724,0.030318913981318,-0.040959015488625,0.014790791086853,0.028545062988997,0.093516588211060,0.050210755318403) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.271516799926758,0.671490609645844,0.560323417186737,-0.068069919943810) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(-0.029944878071547,-0.058367636054754,-0.031400643289089,-0.605027318000793);
res += mat4(0.083162315189838,-0.073569059371948,-0.132146596908569,0.115579701960087,0.108630307018757,-0.067383319139481,-0.240703165531158,0.002626343630254,-0.143152728676796,-0.143949791789055,0.019863959401846,0.032774001359940,0.001139891217463,-0.031544871628284,-0.100400388240814,0.104492731392384) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.015749542042613,0.069910176098347,0.052847135812044,0.009040122851729,0.088568702340126,0.301466017961502,0.056812394410372,-0.034356661140919,0.110267639160156,0.215361520648003,-0.020843489095569,0.174870356917381,0.192813694477081,-0.023596398532391,0.172523930668831,-0.035866592079401) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.103479117155075,-0.274672299623489,0.111164718866348,-0.045240342617035,-0.113447971642017,-0.059716984629631,-0.133942395448685,0.032020948827267,0.093626759946346,-0.191692441701889,0.126469627022743,0.043556917458773,0.124561339616776,0.028011132031679,0.038014680147171,-0.050188399851322) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.210875496268272,-0.281817108392715,0.043781738728285,0.086478680372238,-0.142330124974251,0.172549962997437,0.454762220382690,0.118730433285236,-0.104195773601532,-0.013180293142796,0.055571511387825,0.119914107024670,-0.028900690376759,0.048998631536961,0.042703609913588,-0.026641029864550) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.027933971956372,-0.011690358631313,-0.127389848232269,0.018583770841360,0.106598384678364,-0.242858394980431,-0.353126198053360,-0.302513360977173,0.127114787697792,-0.000037278303353,-0.173997819423676,-0.078274294734001,-0.067551411688328,0.066238760948181,0.102193512022495,0.009494235739112) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.220710024237633,0.111814700067043,0.174592494964600,-0.049966253340244,-0.168974563479424,-0.015018091537058,0.142195180058479,0.125431820750237,-0.367233902215958,-0.070874094963074,-0.004492033272982,0.153142243623734,-0.071534164249897,0.059367921203375,0.046430177986622,0.035771936178207) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.247821167111397,-0.027082599699497,-0.071701660752296,0.157831251621246,0.069673202931881,-0.235854193568230,-0.064772360026836,-0.015765594318509,-0.190627992153168,-0.021555241197348,0.207098379731178,0.137879520654678,-0.007395683322102,0.009357254952192,0.015209524892271,-0.019375883042812) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.068126611411572,0.093659721314907,0.064966849982738,-0.081975236535072,-0.085596151649952,0.053617142140865,0.260895162820816,0.256478309631348,-0.010246592573822,-0.028053393587470,-0.057059451937675,0.032463539391756,0.088441967964172,-0.046915654093027,-0.020634841173887,-0.065216541290283) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.130133077502251,-0.196778446435928,-0.180258125066757,0.021853296086192,0.072171203792095,0.050059545785189,-0.085126601159573,-0.260831505060196,0.037353530526161,0.098454348742962,0.067102387547493,0.089388802647591,-0.072894021868706,-0.028707647696137,-0.033757351338863,0.002829170087352) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.031341914087534,-0.107079446315765,-0.069089293479919,0.000745079596527,-0.148116692900658,-0.238319605588913,0.045240476727486,0.079385660588741,0.083023689687252,0.121887125074863,0.007383927702904,0.022484321147203,-0.174130365252495,-0.005868277512491,-0.108736388385296,0.018823670223355) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.047522407025099,0.225035518407822,0.119497932493687,0.038554981350899,0.125922992825508,0.534538328647614,-0.040429063141346,-0.041614390909672,-0.000285709742457,-0.261937111616135,-0.009869683533907,-0.075115710496902,-0.121977023780346,-0.016409564763308,-0.136975511908531,0.088933266699314) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.024524234235287,-0.008436707779765,0.036480054259300,0.010901882313192,0.137186661362648,0.174586296081543,0.094589978456497,0.070225045084953,-0.120932929217815,0.193574815988541,0.020181708037853,-0.264248430728912,-0.013041163794696,0.040970671921968,-0.025913482531905,0.080221518874168) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.056561365723610,-0.112965032458305,-0.151614025235176,0.004407862201333,-0.175259530544281,-0.104791544377804,0.494605392217636,0.178600654006004,0.162366792559624,-0.037674255669117,-0.084260895848274,0.074264161288738,-0.190817549824715,-0.016524769365788,-0.088513232767582,-0.102403067052364) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.017943667247891,0.266561001539230,0.005329238250852,0.026120424270630,0.133856415748596,0.363262146711349,-0.267722636461258,-0.552288413047791,0.164064809679985,0.049254860728979,0.382227033376694,0.321033746004105,0.152979552745819,0.105317324399948,-0.019425842911005,0.098265044391155) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.125071078538895,0.000093690978247,-0.022895779460669,0.117406435310841,-0.277424544095993,-0.199827462434769,0.190186485648155,-0.073098815977573,-0.102614797651768,0.042487520724535,-0.121472090482712,-0.169267401099205,0.027443600818515,-0.076150096952915,-0.014084877446294,0.248502686619759) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.027102170512080,0.067145489156246,0.166933834552765,0.169743373990059,0.048924759030342,-0.095377251505852,0.305938959121704,-0.158922687172890,0.098480582237244,-0.138208582997322,0.012373467907310,-0.056381244212389,0.026986321434379,0.134096130728722,0.001984596485272,-0.035412210971117) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.124647423624992,-0.125474289059639,-0.070837751030922,-0.363220006227493,0.058900665491819,0.214942589402199,-0.326105505228043,-0.035579681396484,0.228588029742241,-0.078228637576103,0.249412685632706,0.109386153519154,-0.025164993479848,0.079874001443386,-0.059214048087597,0.081501759588718) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.074812158942223,-0.121549934148788,-0.082415230572224,0.001979236025363,0.125957533717155,0.090867117047310,0.028225295245647,0.148872256278992,-0.062597267329693,0.072595231235027,-0.030516847968102,-0.065146930515766,-0.214926674962044,0.058149334043264,-0.039083011448383,-0.058543790131807) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.009276806376874,-0.304929226636887,0.002235030289739,0.104913331568241,0.191753283143044,0.457239121198654,-0.032464124262333,-0.278219580650330,0.041629679501057,-0.043161354959011,-0.058582283556461,-0.106889866292477,-0.232181459665298,0.019928332418203,-0.002156657399610,-0.130337730050087) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.079751171171665,0.060880646109581,-0.022808400914073,0.038586962968111,0.058892849832773,0.680032432079315,-0.072623930871487,-0.280748158693314,0.004649750888348,-0.012904655188322,-0.039583984762430,0.024195974692702,-0.234887897968292,-0.039826948195696,-0.001284573925659,0.504398524761200) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.134921982884407,0.032999530434608,0.070942305028439,0.083436347544193,0.029250409454107,0.082860551774502,-0.098660014569759,-0.082533478736877,0.084166914224625,-0.219576239585876,0.024849403649569,0.138871461153030,-0.003394121536985,0.130622267723083,-0.007320273201913,-0.302282005548477) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.237463742494583,-0.086114689707756,0.106071978807449,-0.049568433314562,0.166315242648125,0.064129360020161,0.130608931183815,-0.298786342144012,-0.120140917599201,-0.043686125427485,-0.003740642219782,0.065146982669830,-0.249242782592773,0.090475656092167,-0.039341166615486,0.128110945224762) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.055821750313044,-0.420260608196259,-0.128952667117119,-0.026776814833283,-0.253233402967453,0.021213017404079,-0.167160913348198,-0.174087554216385,0.193725913763046,-0.154186055064201,-0.094227991998196,0.105791516602039,0.172362908720970,-0.018010657280684,0.007071692962199,0.734921455383301) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.041919145733118,0.000215581705561,0.017026541754603,-0.078190192580223,-0.229073971509933,-0.068376012146473,-0.192088305950165,-0.114147819578648,0.158196538686752,-0.046923987567425,0.100957542657852,-0.002940042642877,0.448705196380615,0.017808230593801,0.005080420058221,-0.040400210767984) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.000080860634625,-0.123682126402855,0.016033206135035,0.051052130758762,0.020152647048235,0.018241429701447,0.104649491608143,-0.203545257449150,-0.185227826237679,-0.094131231307983,-0.025446867570281,-0.129123777151108,0.075193598866463,0.064381174743176,0.094801187515259,-0.288329482078552) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.066488474607468,-0.058820448815823,0.016289284452796,-0.033454973250628,-0.147137597203255,0.052210059016943,0.010842922143638,0.085562214255333,0.076700530946255,0.005244420375675,0.038851771503687,0.195890828967094,0.237965807318687,-0.246561959385872,-0.006757645867765,-0.336787283420563) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.079283125698566,-0.023949077352881,0.003021151758730,0.019523466005921,-0.046782296150923,-0.124674819409847,-0.039504021406174,0.091250568628311,-0.017062434926629,-0.086575999855995,0.087601594626904,0.032501120120287,0.042249619960785,-0.067799217998981,-0.085148476064205,-0.317238748073578) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.013906922191381,0.012137621641159,0.013128298334777,-0.091958962380886,0.017670189961791,0.059763122349977,-0.067600399255753,-0.019131921231747,-0.090617679059505,0.017333813011646,0.247755885124207,-0.296446055173874,0.036335386335850,-0.098064705729485,0.049360133707523,-0.033054698258638) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.150602996349335,-0.147116407752037,0.067984648048878,-0.079079046845436,0.035538043826818,0.293291449546814,0.024499563500285,-0.088138893246651,-0.030589468777180,-0.025831088423729,0.033884879201651,-0.108459532260895,0.043504487723112,0.193962350487709,0.025700645521283,0.215608328580856) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.015678482130170,0.024466367438436,0.073199704289436,-0.035546094179153,-0.133154913783073,-0.062353264540434,0.063326299190521,0.085790932178497,-0.110929243266582,-0.048258457332850,0.028948046267033,0.003594862995669,0.032356228679419,-0.048762097954750,-0.003782474435866,-0.197811156511307) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.059278585016727,0.256422966718674,-0.200774654746056,0.123651720583439,0.041949253529310,0.042986895889044,-0.305787265300751,-0.019426954910159,0.009302021004260,-0.018559316173196,-0.012227674946189,-0.083372429013252,-0.261258900165558,0.112101733684540,0.163100436329842,0.004778988659382) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.022767953574657,-0.126132473349571,-0.054878853261471,0.124403357505798,-0.040117669850588,0.043427817523479,-0.023677987977862,-0.063702374696732,-0.129983112215996,-0.055262196809053,0.052375663071871,0.095711052417755,0.407880455255508,-0.058025911450386,-0.133739352226257,-0.338295876979828) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.120784729719162,-0.051797587424517,0.066524103283882,0.005738531239331,-0.067514300346375,0.023196050897241,0.214446127414703,0.030080905184150,-0.079811602830887,0.044359706342220,0.154440224170685,-0.110968418419361,-0.236162155866623,-0.048289068043232,-0.115190044045448,0.238979652523994) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.024369616061449,-0.046989582479000,0.058128114789724,0.179239079356194,-0.017051156610250,-0.059183012694120,-0.263029694557190,-0.073644712567329,0.156396910548210,0.029318954795599,-0.120903439819813,-0.004194138571620,-0.044880691915751,-0.136708423495293,-0.037053391337395,-0.038976803421974) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.004769953899086,0.042328495532274,0.042599499225616,-0.155030593276024,-0.186540395021439,0.146786376833916,-0.035860404372215,-0.034549571573734,-0.008174329996109,0.148691266775131,-0.204265713691711,0.002699702978134,-0.199692189693451,0.064737744629383,-0.049779329448938,0.197056666016579) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.059422187507153,0.023212952539325,0.027387687936425,0.150491818785667,-0.138219371438026,0.079979263246059,-0.029437663033605,0.064325243234634,0.091138936579227,0.031490031629801,-0.015815068036318,0.118873186409473,0.249224439263344,-0.046874098479748,0.190092504024506,-0.069669418036938) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.014976043254137,0.111360400915146,-0.035355988889933,-0.091765657067299,0.005954446736723,0.103290207684040,-0.002655432093889,-0.062306523323059,0.258455693721771,0.102964855730534,0.015982078388333,-0.113995246589184,0.009348263964057,-0.032741867005825,-0.121859237551689,0.050795510411263) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.073345951735973,-0.057465936988592,-0.103332132101059,-0.010352753102779,0.042262855917215,0.009016853757203,0.160830989480019,0.132282748818398,0.009331976063550,-0.112968131899834,0.002090980997309,0.036558985710144,-0.057280436158180,0.394000858068466,0.037981372326612,0.008837264031172) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.235162809491158,0.258792966604233,-0.042600426822901,0.044321797788143,0.112181201577187,0.014774585142732,-0.042474277317524,-0.068579696118832,-0.057447347790003,-0.000059406673245,0.029174596071243,0.074055239558220,-0.041318263858557,-0.020428011193871,0.081587962806225,-0.082876890897751) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.016627091914415,0.133307799696922,-0.172829508781433,-0.060607764869928,-0.059446949511766,-0.049889642745256,-0.215673193335533,-0.112749457359314,-0.079457916319370,0.038693740963936,-0.207353144884109,-0.118966095149517,0.030106645077467,-0.055470626801252,0.148470610380173,0.073747083544731) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.478326559066772,0.156732156872749,0.005035168956965,-0.027298619970679,-0.321566849946976,-0.141242697834969,-0.006113540846854,0.003320069750771,0.005303017329425,0.010563202202320,-0.065906859934330,-0.001801534672268,0.168820217251778,-0.540459692478180,0.137112393975258,-0.098741196095943) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.192992955446243,0.099410377442837,-0.108636364340782,-0.272685617208481,0.156244933605194,0.032958216965199,0.256327778100967,0.020931217819452,-0.031514428555965,-0.094177804887295,0.120265319943428,-0.018023818731308,-0.058733075857162,-0.130644544959068,0.110468685626984,-0.029425172135234) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.081844665110111,0.006110945716500,-0.102548152208328,-0.074371390044689,0.195518836379051,0.041736353188753,0.082428544759750,-0.022056806832552,-0.031585879623890,-0.025609374046326,0.111659437417984,0.061505682766438,-0.223359540104866,-0.080012068152428,-0.053232211619616,0.191327929496765) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.004430016037077,0.022537956014276,-0.012994422577322,-0.078722849488258,-0.212133660912514,-0.144932806491852,0.192788317799568,0.047361306846142,-0.103621885180473,0.039482668042183,0.058388531208038,0.108384415507317,-0.095519267022610,0.052552834153175,-0.005826107691973,0.089991562068462) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.002191706560552,0.096048094332218,0.002935646567494,-0.096462368965149,0.148120224475861,0.062209606170654,0.163414835929871,-0.128074437379837,-0.028357524424791,0.039197105914354,-0.172583565115929,-0.029106352478266,0.207145214080811,0.002526761032641,0.103270545601845,0.211044788360596) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.089619621634483,-0.033372256904840,0.000011737472960,0.052215889096260,0.001872338005342,0.044104598462582,0.199086442589760,-0.052381597459316,-0.142867162823677,-0.064637593924999,-0.033712625503540,-0.156428858637810,0.079596340656281,0.231772810220718,-0.004704107996076,-0.050934739410877) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.056170523166656,0.073038630187511,0.076429344713688,-0.046494245529175,-0.045972291380167,-0.132534250617027,-0.087506346404552,0.067113779485226,0.016625912860036,0.011492546647787,-0.002477603498846,-0.100339710712433,-0.094619020819664,-0.015990160405636,-0.012201692909002,0.037761982530355) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.006138809025288,0.009361680597067,-0.033818822354078,0.023096302524209,0.221548527479172,0.069443143904209,0.032396610826254,-0.066797062754631,-0.064102917909622,-0.028865054249763,-0.013445079326630,-0.139048680663109,-0.049981545656919,-0.012286696583033,-0.011035369709134,-0.075872875750065) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.102820888161659,-0.284377753734589,0.137465745210648,-0.106779865920544,0.084412477910519,-0.021803429350257,-0.244432315230370,-0.092574305832386,0.038742475211620,0.001237885560840,-0.104098722338676,-0.205368086695671,0.085793174803257,0.054749440401793,-0.057617276906967,0.022553229704499) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.166352525353432,-0.445784628391266,-0.265632569789886,-0.542360544204712,-0.162410780787468,-0.075062245130539,0.019057983532548,0.287886351346970,0.071845114231110,0.138535857200623,0.003970641642809,-0.085140205919743,-0.123478092253208,-0.022382540628314,0.024111954495311,-0.143543839454651) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.085305608808994,0.048341423273087,0.019842227920890,0.096878394484520,-0.074772089719772,0.074636101722717,0.014451724477112,-0.064381793141365,0.049194999039173,-0.011707455851138,-0.043076913803816,-0.148327320814133,0.003723431844264,-0.169180735945702,0.113035552203655,0.054937865585089) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.023469978943467,0.088752098381519,-0.184872567653656,0.187530219554901,0.147260993719101,-0.058144569396973,-0.101444147527218,-0.061864096671343,0.011173006147146,-0.136692762374878,-0.018614986911416,0.117296516895294,0.203731000423431,-0.221366122364998,-0.088093318045139,0.086067594587803) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.041437786072493,0.010423168540001,0.062545210123062,0.332509070634842,-0.243907898664474,0.039927706122398,0.047909844666719,0.012983050197363,0.249388128519058,0.085642375051975,-0.094793625175953,-0.048077363520861,-0.192735627293587,-0.167041778564453,0.118182808160782,0.080269202589989) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.036499723792076,0.074198573827744,0.103923648595810,0.014068922959268,0.367549657821655,-0.057850975543261,-0.119979254901409,-0.086480453610420,0.080272063612938,-0.030027624219656,-0.119798555970192,-0.054322108626366,-0.135995030403137,-0.040260851383209,-0.056901045143604,0.020962469279766) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.479725688695908,-0.035193979740143,0.507147014141083,-0.022476337850094) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.000354988005711,0.081987679004669,-0.001056331093423,0.212694153189659);
res += mat4(-0.013686411082745,-0.077319160103798,-0.027819471433759,-0.064350895583630,-0.066896989941597,-0.047184597700834,-0.075446084141731,0.035087168216705,-0.108233004808426,-0.004910684656352,-0.173588499426842,0.103051938116550,0.291695803403854,-0.017971759662032,0.139061599969864,0.015835197642446) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.018566425889730,-0.039341788738966,-0.025212103500962,-0.180873960256577,0.121140152215958,-0.021024947986007,0.078684441745281,0.058157168328762,0.040514778345823,0.413636893033981,0.316896736621857,-0.202983275055885,0.319506764411926,-0.136150524020195,-0.139028459787369,-0.042124878615141) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.179127961397171,0.036874487996101,0.007731202989817,0.046849723905325,-0.211885988712311,0.114732541143894,0.131872594356537,0.098404005169868,0.058617752045393,0.151226073503494,0.006624664645642,0.067228384315968,0.104849375784397,0.076248735189438,0.081661775708199,0.123387418687344) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.129121273756027,-0.190567046403885,-0.007181851193309,-0.067654669284821,0.304613053798676,-0.262557148933411,-0.585841119289398,-0.084288462996483,-0.065812908113003,-0.021968159824610,-0.366622179746628,-0.038377642631531,0.094394654035568,0.019278021529317,-0.007126483600587,-0.030319502577186) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.081170730292797,0.113088257610798,0.118710294365883,-0.086917042732239,-0.166011929512024,0.208097800612450,0.329296410083771,0.192285597324371,-0.018327696248889,0.057839516550303,0.438953429460526,0.010615712963045,0.035073846578598,-0.111135445535183,-0.002541483612731,-0.075867824256420) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.192650571465492,0.058401219546795,-0.299331277608871,-0.059019483625889,0.223377197980881,0.040707796812057,0.100398615002632,-0.074973136186600,0.327654629945755,-0.242268815636635,-0.158376350998878,-0.214990854263306,0.053793873637915,0.031091040000319,0.021936926990747,-0.013151152059436) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.016162589192390,-0.001057247398421,-0.072751522064209,-0.013742598704994,0.088645629584789,-0.072354651987553,0.198491975665092,0.011537695303559,-0.127211481332779,-0.003086139680818,-0.111875303089619,0.028931114822626,0.034052800387144,-0.022831445559859,-0.007980085909367,0.036554209887981) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.408975720405579,0.276144385337830,0.156581938266754,-0.080280944705009,-0.146883502602577,0.002355770906433,-0.235734134912491,-0.236431598663330,-0.219284564256668,-0.108308985829353,0.030891960486770,0.023020366206765,0.055511213839054,0.087104238569736,0.056330144405365,0.022774714976549) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.240969419479370,0.195106625556946,-0.040132019668818,0.049834981560707,-0.084595881402493,0.059799391776323,0.029488965868950,0.032293774187565,0.264193117618561,0.061767246574163,0.011280459351838,0.147739350795746,0.073865264654160,0.001016356633045,-0.032638788223267,-0.005180318374187) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.030304368585348,0.087462648749352,0.204717263579369,0.082226492464542,0.105765245854855,-0.036936987191439,0.013316300697625,-0.029247684404254,-0.090363092720509,-0.005155201070011,0.204064711928368,-0.074207909405231,0.028724145144224,0.109780400991440,0.076718062162399,-0.008058120496571) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.059351298958063,0.023491682484746,-0.092240005731583,0.061331383883953,0.205999806523323,-0.226391360163689,-0.001528296386823,-0.080962836742401,-0.217249050736427,0.181702613830566,-0.286518633365631,0.163932770490646,0.131154730916023,0.076674163341522,0.077856816351414,-0.046986121684313) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.027433926239610,0.016369806602597,-0.012349349446595,0.018483351916075,0.084173403680325,-0.029952382668853,-0.043735634535551,0.052313249558210,-0.097792603075504,-0.019737005233765,0.220277860760689,0.199233442544937,-0.026930959895253,0.012375990860164,0.005643164273351,-0.045036926865578) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.189780443906784,0.014045028015971,0.040998928248882,-0.007390719372779,0.057418957352638,-0.325963348150253,-0.643916606903076,-0.235941648483276,0.156129479408264,0.056771520525217,0.381024420261383,-0.019673347473145,0.087105706334114,0.236896783113480,-0.040603447705507,-0.052078150212765) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.071093469858170,-0.120856113731861,-0.052047584205866,-0.068766333162785,-0.536553621292114,0.250568032264709,0.420378267765045,0.361928433179855,0.362661689519882,-0.393812537193298,-0.459190785884857,-0.202144682407379,0.088515743613243,-0.085679240524769,-0.155919775366783,-0.119741745293140) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.013136940076947,-0.243761032819748,-0.188622221350670,-0.037785708904266,0.202895134687424,0.120816357433796,0.191740125417709,-0.040229119360447,-0.018764743581414,0.001379813882522,0.084294140338898,0.044931858778000,0.029223270714283,-0.099210880696774,0.001839069765992,-0.048290912061930) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.132591232657433,-0.124289467930794,-0.152915477752686,-0.134618312120438,-0.043743498623371,-0.213704168796539,-0.262694269418716,0.072289258241653,0.074118211865425,-0.137561559677124,-0.032252442091703,-0.066226936876774,-0.120410874485970,0.138923496007919,-0.071490861475468,-0.004100468941033) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.133550092577934,0.129986673593521,0.255805522203445,0.222658693790436,-0.072879604995251,0.033931441605091,0.199279606342316,-0.012766991741955,0.017006142064929,-0.065195329487324,-0.311616092920303,0.000108530308353,0.058748289942741,-0.004584345500916,-0.032226711511612,-0.077663555741310) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.274325519800186,0.113736860454082,-0.020353900268674,-0.032404188066721,-0.161839827895164,0.034155603498220,0.118742473423481,-0.080431751906872,-0.012672420591116,-0.058698996901512,0.092772409319878,0.030532943084836,0.146668374538422,-0.212743833661079,0.021632358431816,-0.106885515153408) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.040006864815950,0.053661476820707,-0.159990653395653,0.001899205031805,0.116516664624214,-0.005370450206101,-0.194206222891808,0.028903298079967,0.088376991450787,-0.017013506963849,0.012428044341505,0.081151686608791,0.211089357733727,0.176744088530540,0.123944230377674,0.059141501784325) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.093383595347404,0.193539246916771,-0.011855124495924,0.224292993545532,0.341336280107498,-0.078120626509190,0.076327726244926,0.024449316784739,0.010269579477608,0.074218295514584,0.046721588820219,-0.080608204007149,-0.020654056221247,0.113189265131950,-0.026844540610909,-0.185199305415154) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.023601610213518,0.037920501083136,-0.062067151069641,0.030490284785628,0.154855892062187,0.029128389433026,0.044135410338640,0.091275684535503,0.058746304363012,-0.014872385188937,0.000851277727634,0.082250908017159,0.062512546777725,-0.070889443159103,-0.162552773952484,-0.348349213600159) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.163829103112221,-0.029571725055575,-0.140355870127678,-0.036702744662762,0.119945667684078,0.028125353157520,-0.178278908133507,0.250149071216583,0.053141705691814,0.117731213569641,0.070740096271038,-0.041897285729647,-0.294351190328598,0.466691583395004,0.462695062160492,0.115793444216251) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.049448661506176,0.048575200140476,-0.071755394339561,-0.017142416909337,0.043938905000687,0.432766944169998,0.067735314369202,0.323728680610657,-0.265906602144241,0.138698622584343,0.068147793412209,0.018841084092855,-0.287489622831345,0.128469109535217,-0.336744159460068,-0.014709572307765) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.001125618466176,0.015552137978375,0.105645172297955,0.060547079890966,0.075462102890015,0.474206626415253,0.220198988914490,0.046752523630857,0.032273504883051,0.045263655483723,-0.056595593690872,-0.250478506088257,-0.239476755261421,-0.034975074231625,-0.122385121881962,-0.187037184834480) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.100557617843151,0.013489707373083,0.052379701286554,-0.139308378100395,0.101678632199764,-0.047698426991701,-0.224336385726929,0.002548237331212,-0.113834887742996,0.040873583406210,0.205721408128738,0.132658734917641,-0.001772814663127,0.161570042371750,-0.058668799698353,0.048536151647568) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.225749641656876,0.068879298865795,-0.071725174784660,-0.065171033143997,0.039284199476242,0.138140261173248,0.067391455173492,0.010359985753894,-0.099359802901745,0.051474820822477,-0.013818078674376,0.172964885830879,-0.022774394601583,-0.155845090746880,0.139226853847504,0.208557248115540) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.043422870337963,0.012234662659466,0.019831223413348,-0.004686572588980,-0.011772448197007,0.106394551694393,0.113576576113701,-0.098373167216778,0.136184960603714,0.155108511447906,0.077568076550961,0.205020785331726,-0.015534158796072,-0.442288130521774,-0.085384115576744,-0.017356893047690) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.078674905002117,0.191661953926086,-0.102892987430096,0.100898973643780,-0.048365518450737,0.139749899506569,-0.005873931571841,0.111207000911236,0.123483307659626,0.172972127795219,-0.026008170098066,-0.059504337608814,-0.031044404953718,0.034980926662683,0.093503102660179,-0.014344304800034) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.213840916752815,0.121498741209507,0.181070089340210,0.144831493496895,-0.040135722607374,-0.267996132373810,0.007970917038620,0.060205679386854,0.035657614469528,0.058219876140356,-0.233518227934837,-0.153777673840523,0.132803007960320,-0.052769199013710,-0.053750570863485,-0.090743996202946) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.116752184927464,-0.016746599227190,-0.125712066888809,0.053982481360435,0.049230203032494,-0.009412468411028,0.020159028470516,0.017195625230670,0.064193785190582,0.173056304454803,-0.017418041825294,0.155551239848137,-0.173879057168961,-0.007597682066262,0.060378193855286,-0.043340679258108) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.288025736808777,0.041075412184000,-0.014432843774557,0.087831661105156,0.015896663069725,0.075702488422394,-0.054590485990047,0.014765054918826,0.027393644675612,0.017810795456171,0.113035127520561,0.003526845946908,0.218110680580139,-0.081979371607304,-0.151553854346275,-0.030378803610802) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.088780194520950,0.076992936432362,0.116534590721130,0.053766913712025,-0.106544263660908,-0.309420973062515,-0.027623116970062,-0.066195830702782,0.140443980693817,-0.418189018964767,-0.001897344249301,0.012149926275015,-0.175299659371376,0.224239885807037,0.073453523218632,0.225455284118652) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.073743298649788,0.086578488349915,-0.087897531688213,0.013796901330352,0.102680251002312,-0.108908392488956,-0.028323089703918,0.021996803581715,0.052787419408560,-0.055665865540504,-0.076246224343777,-0.024944249540567,0.167688682675362,0.031464636325836,0.005083126947284,-0.002982696751133) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.111223891377449,0.069741345942020,-0.010233215056360,-0.029628124088049,-0.008008807897568,0.170337900519371,-0.008706895634532,-0.000737552065402,-0.250052303075790,0.010864541865885,0.123424477875233,-0.042850721627474,0.143882438540459,0.063355565071106,-0.011441639624536,0.057724785059690) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.037860985845327,-0.254710406064987,0.114853285253048,-0.096911206841469,-0.278424918651581,-0.123869679868221,-0.034109476953745,0.027948113158345,-0.159275218844414,-0.167663887143135,-0.022014329209924,-0.054429978132248,-0.000881897984073,0.002936866600066,0.023943981155753,-0.117878437042236) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.001669644960202,-0.027008220553398,-0.006237397901714,-0.086604803800583,0.120453283190727,-0.125406920909882,-0.002420685719699,-0.084834530949593,0.013581503182650,-0.171042457222939,-0.054401747882366,-0.069791883230209,-0.167531102895737,-0.071212083101273,0.009073790162802,-0.048881337046623) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.075208812952042,-0.122791223227978,-0.176456347107887,-0.227077618241310,-0.011062495410442,-0.001706619048491,-0.091418854892254,0.013361638411880,0.100338310003281,-0.001622066716664,-0.094295039772987,0.006573853082955,-0.026850875467062,0.000632585899439,0.149818032979965,0.000846587237902) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.011943344026804,-0.134949013590813,0.158500626683235,-0.207337513566017,0.072375819087029,-0.069432161748409,-0.038943890482187,0.012652799487114,0.126505941152573,-0.012488300912082,0.025562711060047,0.019367802888155,0.026029042899609,0.095935754477978,-0.061251036822796,0.183420747518539) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.117536917328835,0.227820694446564,0.013498966582119,-0.129399925470352,-0.109359063208103,-0.072227723896503,-0.066676013171673,0.024397004395723,0.076601475477219,0.038403831422329,-0.110573858022690,0.001576801645570,-0.149892568588257,0.168799132108688,-0.019655669108033,0.117342866957188) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.019248245283961,-0.051662173122168,-0.217580094933510,-0.063247546553612,0.058762449771166,0.108916521072388,0.147036060690880,0.065496303141117,-0.156756818294525,0.188435971736908,0.022091621533036,0.009405659511685,0.420240670442581,-0.054878652095795,-0.076154097914696,-0.160042122006416) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.183278560638428,0.126848831772804,0.012403237633407,-0.106007546186447,0.092027410864830,-0.081587269902229,-0.220442235469818,-0.032132886350155,0.126937970519066,0.109315939247608,0.061415467411280,-0.042750112712383,-0.176902487874031,0.039754487574100,0.104999929666519,0.033144716173410) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.247866392135620,-0.307041704654694,0.065305255353451,-0.090916201472282,0.024765590205789,-0.094726860523224,-0.036934185773134,0.019559131935239,-0.019868843257427,-0.024640977382660,0.046281095594168,0.069443270564079,-0.041276879608631,0.106169082224369,-0.107103727757931,0.041059616953135) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.128581032156944,0.050335962325335,-0.053036421537399,0.004212315194309,0.075723096728325,0.052084699273109,-0.058408658951521,0.057300027459860,-0.270199656486511,0.061999481171370,-0.025066085159779,-0.096658349037170,0.091203197836876,0.117637231945992,0.066414751112461,-0.152409568428993) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.235556125640869,0.222540736198425,-0.039235785603523,-0.001920272829011,0.010679581202567,-0.133269414305687,0.064656741917133,-0.094515487551689,0.124772518873215,-0.092213615775108,0.064608514308929,-0.051601175218821,-0.093198172748089,-0.072002954781055,0.030470632016659,-0.055900216102600) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.041126120835543,0.014160345308483,0.011877007782459,0.028083313256502,-0.345342993736267,-0.085960187017918,-0.097702331840992,0.118504673242569,-0.219915539026260,0.031997755169868,0.029583856463432,0.060825139284134,-0.093697555363178,-0.106703311204910,-0.107285685837269,-0.040154535323381) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.054416954517365,-0.094138294458389,0.082913525402546,-0.047719132155180,0.014641884714365,0.062511652708054,0.068771734833717,0.006489060353488,0.044250234961510,0.050872094929218,-0.005541156977415,-0.002605879213661,0.038900446146727,-0.060329925268888,-0.020341841503978,0.042530555278063) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.160127893090248,-0.082273915410042,-0.053194064646959,0.057046625763178,0.065087065100670,0.138317734003067,-0.109711997210979,0.028069600462914,-0.003151513170451,-0.054523419588804,0.029659805819392,-0.048495952039957,0.077855773270130,0.008863400667906,0.149144709110260,0.084902368485928) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.032236889004707,0.031196216121316,-0.033361893147230,0.073793925344944,-0.202924907207489,0.059862233698368,-0.016300551593304,0.055572662502527,-0.043414492160082,0.055542621761560,0.010891488753259,0.097916722297668,-0.080109596252441,-0.078789554536343,0.013479680754244,-0.024304665625095) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.085602976381779,0.066762365400791,-0.110368974506855,-0.035888157784939,0.148807391524315,0.125829145312309,0.377689093351364,0.101965241134167,0.032372135668993,0.020857438445091,0.317910820245743,-0.073615260422230,0.040335856378078,0.199865624308586,0.053519539535046,0.149934738874435) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.026419347152114,0.179118052124977,0.075213439762592,0.041662216186523,0.079169332981110,-0.217068746685982,-0.080474458634853,-0.104960419237614,0.139540836215019,-0.051588930189610,-0.052414163947105,0.071124009788036,-0.004024583846331,0.259311735630035,0.146813958883286,0.040128480643034) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.156945541501045,0.172910645604134,-0.056750759482384,-0.047471087425947,-0.055594917386770,-0.028261216357350,-0.089567080140114,-0.019641257822514,0.088824741542339,-0.047551669180393,0.001331122708507,0.020033661276102,-0.075771063566208,0.065111927688122,0.028062831610441,0.034369919449091) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.167385235428810,0.152679726481438,0.099032387137413,-0.166152581572533,-0.155594214797020,0.066596314311028,-0.035828050225973,0.035732291638851,-0.335298448801041,-0.186100572347641,-0.060281239449978,-0.069594934582710,-0.045013334602118,0.112842231988907,0.021230755373836,0.165925234556198) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.156153410673141,0.069208033382893,-0.149363517761230,-0.185630723834038,0.164791017770767,-0.159560993313789,-0.061269331723452,-0.046179372817278,0.080744013190269,-0.167667418718338,-0.067063964903355,-0.029233546927571,-0.018431041389704,0.302415281534195,0.088475331664085,0.229084149003029) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.111434377729893,0.141704231500626,0.062277395278215,0.075167179107666,-0.279448837041855,0.101576730608940,0.021955445408821,0.038196794688702,-0.119970560073853,0.119639255106449,-0.023853136226535,0.022738369181752,-0.134115025401115,-0.037491992115974,-0.012770245783031,-0.047912962734699) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.072935499250889,0.007322521880269,-0.540420651435852,-0.017554558813572) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(-0.029179956763983,-0.042430903762579,0.040991622954607,-0.103756502270699);
res += mat4(-0.065479591488838,-0.036898296326399,-0.410912960767746,0.090320609509945,0.022071227431297,-0.022001830860972,-0.093367800116539,-0.139916345477104,-0.049054935574532,0.003988443408161,0.212815001606941,0.003339810995385,-0.083431474864483,0.100286915898323,0.009479065425694,-0.341869920492172) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.124493621289730,-0.010018294677138,-0.134658887982368,-0.266723364591599,0.000578914652579,-0.057034198194742,0.194097727537155,-0.056886311620474,-0.103314742445946,-0.011456029489636,0.110089883208275,-0.225798636674881,0.051293291151524,0.019110865890980,-0.091083347797394,-0.374902307987213) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.005348642356694,-0.024787373840809,-0.008378330618143,-0.181443080306053,0.021510548889637,0.009453936479986,-0.033849734812975,-0.170759990811348,-0.197563409805298,0.029513837769628,0.160179495811462,-0.071876116096973,0.053941804915667,0.048588234931231,0.049216877669096,-0.155625507235527) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.102933429181576,0.053778991103172,-0.749620079994202,-0.097532190382481,-0.039235055446625,-0.157529115676880,0.094102054834366,0.036885257810354,-0.022771921008825,-0.048510480672121,0.182944551110268,-0.022781152278185,0.429814040660858,0.222029179334641,-0.264263838529587,0.296422988176346) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.085303105413914,0.004020506516099,0.357924282550812,0.128965631127357,-0.164269819855690,-0.028835223987699,0.839859247207642,0.208670482039452,-0.213990107178688,0.006012193858624,0.373391509056091,0.095584928989410,0.127031937241554,0.064245492219925,-0.682360947132111,0.289941489696503) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.229519188404083,0.043563477694988,0.188586190342903,0.190172508358955,0.200638726353645,0.185640946030617,-0.036118432879448,0.090334303677082,0.170300602912903,0.080821156501770,0.138535618782043,-0.076068334281445,0.143059417605400,0.036591295152903,-0.055308606475592,0.211171478033066) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.171078681945801,-0.041977744549513,-0.195414036512375,0.095197215676308,-0.088039942085743,-0.036797955632210,0.055209457874298,0.205433398485184,-0.007093975786120,-0.113531045615673,0.161432161927223,0.048044297844172,0.037043958902359,0.135286927223206,-0.050705287605524,-0.003805043874308) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.112965248525143,-0.104864880442619,-0.142666429281235,-0.083923704922199,0.265019506216049,-0.160175815224648,-0.136815652251244,-0.041976157575846,-0.004247257951647,0.095446206629276,0.291943430900574,-0.097573705017567,0.023193338885903,0.067277863621712,-0.165822908282280,0.137466996908188) * MODEL1_texOff(vec2(1,0));
res += mat4(0.150637537240982,-0.044135447591543,-0.053141206502914,-0.251856267452240,-0.041459619998932,0.099708810448647,-0.014006399549544,0.004179223906249,-0.097123712301254,0.097043916583061,0.374631941318512,-0.156958952546120,-0.045668870210648,0.003582568606362,0.027046322822571,0.047646954655647) * MODEL1_texOff(vec2(1,1));
res += mat4(0.034936420619488,0.094383522868156,0.128274127840996,-0.002357235876843,-0.076236329972744,0.125114366412163,0.075868286192417,0.078130409121513,0.035520579665899,-0.018149841576815,-0.031465578824282,0.079817652702332,-0.314878523349762,0.111618384718895,0.014569739811122,-0.315763026475906) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.049454793334007,0.516747832298279,-0.341551065444946,-0.129864960908890,-0.051909107714891,0.132351189851761,0.066249497234821,0.087834216654301,0.176483541727066,-0.273911297321320,0.039408918470144,0.021252768114209,-0.298258125782013,-0.026443656533957,-0.114021800458431,0.066921785473824) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.213375374674797,0.188138797879219,0.001006192527711,0.158308178186417,-0.078001759946346,0.074283830821514,0.041789226233959,0.184858217835426,0.083812646567822,0.018633160740137,-0.093709275126457,-0.058183882385492,-0.283031493425369,-0.002262826310471,0.013823359273374,0.025356341153383) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.092533074319363,0.018425047397614,-0.228618204593658,0.091322019696236,-0.128477424383163,-0.079155750572681,0.117077358067036,-0.110036045312881,0.298376053571701,-0.161284178495407,0.040536358952522,-0.074033856391907,-0.156931579113007,-0.123657777905464,-0.089061319828033,0.022083142772317) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.036430068314075,0.242436841130257,0.115736357867718,-0.312929838895798,-0.009073426015675,0.130282819271088,-0.216294705867767,-0.043949026614428,0.049925286322832,-0.079130925238132,-0.498773306608200,-0.231360226869583,0.201130285859108,0.010221817530692,-0.003634011372924,-0.119746237993240) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.111105673015118,0.028258364647627,0.006091277580708,0.073214232921600,-0.074892140924931,0.019842132925987,0.173015519976616,0.126910090446472,-0.449469178915024,0.122180797159672,0.041892655193806,-0.073535703122616,-0.117998249828815,-0.056339021772146,0.065638981759548,-0.149505272507668) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.137001767754555,-0.064526557922363,-0.079615928232670,-0.092438675463200,-0.085401058197021,-0.145128458738327,-0.230278238654137,-0.232936143875122,0.074875146150589,-0.287964493036270,0.016869271174073,0.127031877636909,-0.253921091556549,-0.064637206494808,0.004597260151058,-0.051954541355371) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.092115253210068,-0.002500013681129,0.064398057758808,-0.183170229196548,0.010105441324413,-0.025102369487286,-0.050062716007233,-0.154729500412941,-0.290457189083099,0.004862584173679,0.119287267327309,0.249295309185982,-0.295912653207779,0.106704182922840,-0.029301162809134,0.113886378705502) * MODEL2_texOff(vec2(1,0));
res += mat4(0.160856649279594,-0.049173090606928,0.007147066760808,-0.085886560380459,0.017124759033322,0.071849510073662,0.209391355514526,-0.017003808170557,-0.085732072591782,0.150710090994835,0.088056385517120,0.086869120597839,-0.185628637671471,0.043059587478638,0.140335127711296,0.134144976735115) * MODEL2_texOff(vec2(1,1));
res += mat4(0.184750825166702,-0.080832168459892,-0.001322365249507,-0.181645393371582,0.023351764306426,-0.036645889282227,-0.042326349765062,0.241603314876556,-0.030551858246326,-0.193112522363663,-0.001536867348477,-0.067898891866207,-0.152606979012489,-0.108363866806030,-0.065881639719009,-0.217881530523300) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.076206795871258,0.068339735269547,-0.162161961197853,-0.180899769067764,0.207270249724388,-0.115099020302296,0.288684129714966,0.179512396454811,0.083770900964737,-0.118661642074585,-0.176451221108437,-0.017826138064265,0.285290151834488,-0.195263311266899,-0.398672103881836,-0.046771500259638) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.090988673269749,0.007675596978515,-0.080010525882244,-0.132482647895813,0.261022686958313,0.074631504714489,-0.043804995715618,-0.011873830109835,-0.000703585101292,-0.048639498651028,0.034952100366354,-0.088364876806736,0.071810208261013,-0.147916287183762,0.053471434861422,-0.244286194443703) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.065531097352505,0.191245228052139,-0.323161602020264,0.042691666632891,0.081851452589035,0.062807463109493,-0.192510575056076,0.106033086776733,0.133520662784576,-0.248917594552040,0.068847246468067,0.007627942133695,0.003106393385679,-0.185818985104561,0.020392572507262,-0.002033316995949) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.403460085391998,-0.018211496993899,0.344463199377060,0.300650298595428,0.087047211825848,-0.113238178193569,-0.441733390092850,0.156278535723686,-0.035693712532520,0.063619576394558,-0.239183366298676,-0.280369400978088,0.155628502368927,-0.029444646090269,-0.438594013452530,-0.165295019745827) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.019648784771562,-0.019536346197128,0.104063428938389,0.043452359735966,-0.243810921907425,-0.055678650736809,-0.535736680030823,-0.128996893763542,-0.072766944766045,0.058242954313755,-0.193278923630714,-0.054979018867016,-0.039145126938820,-0.058767493814230,0.089256525039673,-0.116847872734070) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.212521940469742,0.200072109699249,-0.180309385061264,0.096343681216240,0.058493085205555,-0.149339035153389,-0.334340631961823,0.140449941158295,0.183259099721909,-0.135396555066109,0.024278702214360,0.014921872876585,-0.127275139093399,0.075607605278492,0.058414809405804,0.058550130575895) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.178251236677170,-0.237091943621635,-0.050900962203741,-0.061065685003996,-0.209244415163994,0.287863135337830,-0.416535109281540,0.322213113307953,-0.296222507953644,-0.052730191498995,-0.105589002370834,0.251140117645264,0.193105831742287,-0.133419051766396,0.023569630458951,-0.036086250096560) * MODEL3_texOff(vec2(1,0));
res += mat4(0.144585967063904,-0.010007422417402,0.011321879923344,0.148843646049500,-0.019877810031176,0.065920256078243,-0.367970973253250,0.037117689847946,0.041036728769541,0.114705659449100,-0.017986521124840,-0.094801589846611,0.001194441108964,-0.022347243502736,0.151350751519203,-0.130321681499481) * MODEL3_texOff(vec2(1,1));
res += mat4(0.047029387205839,0.100544691085815,0.055882856249809,0.018953844904900,0.250760227441788,-0.202224671840668,0.045831568539143,0.079066038131714,-0.112810805439949,0.193639159202576,-0.058327190577984,-0.025269668549299,-0.038801133632660,-0.009568000212312,-0.284311294555664,-0.258505612611771) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.089770384132862,-0.018239071592689,0.041707988828421,0.024616206064820,-0.284133881330490,0.085462264716625,-0.128717079758644,-0.016581917181611,0.202620595693588,-0.133745193481445,-0.119905866682529,-0.004220363218337,0.007721143309027,-0.090958029031754,-0.404127836227417,-0.125517740845680) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.064623951911926,-0.051768805831671,0.062081988900900,-0.011546745896339,-0.278517454862595,-0.009503233246505,-0.064067058265209,-0.202647015452385,0.126533493399620,0.081509329378605,-0.110782489180565,0.044783834367990,-0.085976555943489,0.060448300093412,-0.322011560201645,0.111192166805267) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.087883442640305,0.013734260573983,-0.025694895535707,0.250878095626831,-0.117833636701107,0.180371060967445,-0.092256844043732,-0.002559895394370,-0.125376254320145,0.156533122062683,-0.012769823893905,0.132551655173302,0.009560158476233,0.139111056923866,0.075751960277557,-0.167828246951103) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.279974102973938,-0.172236770391464,0.057252135127783,0.130050525069237,0.000583748973440,-0.073472559452057,0.023661071434617,0.040188249200583,0.249073490500450,-0.028628524392843,-0.046627376228571,-0.121854916214943,-0.181936010718346,-0.021186161786318,-0.234862968325615,-0.017990570515394) * MODEL4_texOff(vec2(0,0));
res += mat4(0.307051837444305,0.028760218992829,-0.015237984247506,0.005858531687409,0.351445078849792,-0.034612547606230,-0.091192610561848,-0.027841523289680,0.014962580986321,-0.049491051584482,0.142705753445625,0.168313950300217,-0.150326982140541,-0.042482845485210,-0.341484874486923,0.076312974095345) * MODEL4_texOff(vec2(0,1));
res += mat4(0.185378670692444,0.096122071146965,0.036416351795197,0.119759373366833,-0.245465248823166,0.313987880945206,0.135263502597809,0.069377101957798,0.032530181109905,0.474824845790863,0.038550008088350,0.069650962948799,-0.213305875658989,-0.000536300998647,0.117211282253265,0.295375943183899) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.513196706771851,-0.233475461602211,0.080485455691814,-0.002784733194858,0.185661554336548,-0.120355814695358,-0.111062735319138,-0.256209164857864,0.030996065586805,-0.272341936826706,-0.007936220616102,-0.111134678125381,0.208646059036255,0.170772328972816,-0.073420256376266,-0.024390254169703) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.136609792709351,-0.009508728049695,0.126547843217850,0.201722547411919,-0.034167114645243,0.070753291249275,0.077740445733070,0.080690279603004,-0.170375719666481,-0.034743834286928,0.031694639474154,-0.051066953688860,-0.043292313814163,-0.062845192849636,-0.242538556456566,0.012801074422896) * MODEL4_texOff(vec2(1,1));
res += mat4(0.160246551036835,-0.093764118850231,-0.020427294075489,-0.088722005486488,-0.194013044238091,0.024469163268805,-0.161063656210899,0.018479118123651,-0.035623800009489,0.098374634981155,0.074117369949818,-0.144651323556900,-0.264656335115433,0.030897203832865,0.105153940618038,-0.109538666903973) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.050084166228771,-0.049229219555855,-0.150964334607124,-0.077756911516190,-0.044504884630442,-0.016386806964874,-0.061422064900398,0.004211189225316,0.206202372908592,-0.107236891984940,-0.124471805989742,-0.025915598496795,0.065084949135780,-0.137403607368469,-0.033621888607740,-0.067975603044033) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.204304322600365,0.115464329719543,-0.101752229034901,-0.004242290742695,0.181868970394135,0.063839763402939,-0.149521082639694,-0.044316306710243,0.130749061703682,-0.084635078907013,0.096551120281219,-0.176103219389915,0.143067404627800,0.023663830012083,0.108558207750320,-0.155570209026337) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.190840259194374,0.010763607919216,-0.117650352418423,-0.086574137210846,0.141036823391914,-0.094036422669888,-0.361559271812439,0.096445940434933,0.311928451061249,-0.065943710505962,0.033821921795607,0.135122030973434,0.029813285917044,-0.142593398690224,-0.208393171429634,0.067846477031708) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.074130356311798,-0.191240161657333,-0.067669004201889,-0.021209275349975,0.072608664631844,0.280393064022064,-0.380820482969284,0.099651418626308,0.045936729758978,0.219458311796188,-0.443013370037079,0.071386590600014,-0.124447762966156,-0.047270413488150,-0.162137806415558,-0.265958279371262) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.072953648865223,0.067083194851875,-0.122899465262890,-0.000970309192780,-0.329665958881378,-0.021217634901404,-0.180408760905266,-0.400333702564240,-0.411033511161804,-0.113862328231335,0.144577220082283,0.127709031105042,-0.005280295852572,-0.005335576832294,0.021099517121911,-0.200531706213951) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.151201978325844,0.161293685436249,-0.055110864341259,0.138536527752876,0.103185638785362,-0.123825676739216,-0.045108996331692,-0.159240573644638,-0.083723396062851,-0.137800052762032,0.036355935037136,-0.075510151684284,0.116460472345352,-0.146175533533096,-0.032419033348560,0.113765634596348) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.117105312645435,-0.227190941572189,0.124571777880192,0.000236621126533,-0.350425601005554,-0.371650010347366,0.508018493652344,0.007454893551767,0.007483683526516,0.271986693143845,0.097843460738659,0.044058274477720,0.045054782181978,-0.206405296921730,-0.194473028182983,0.294808357954025) * MODEL5_texOff(vec2(1,0));
res += mat4(0.257694274187088,0.032980326563120,0.053093321621418,-0.003140404587612,0.185869008302689,0.051289696246386,-0.069780565798283,-0.162141442298889,0.080907344818115,-0.129940897226334,-0.152244806289673,-0.340075284242630,0.000309474387905,0.019628876820207,0.052644096314907,0.125813022255898) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.127401486039162,-0.161249637603760,0.066096529364586,0.090410575270653,0.024263914674520,-0.130660310387611,0.047057688236237,-0.093486331403255,-0.061212763190269,-0.056604404002428,0.051435701549053,0.038822326809168,0.016030188649893,0.041045032441616,0.028643133118749,-0.096973158419132) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.063991338014603,0.053311821073294,0.175493568181992,-0.099303089082241,0.138053834438324,-0.150574937462807,-0.037482980638742,-0.055184863507748,-0.118231795728207,0.085649766027927,0.107356607913971,-0.150570303201675,-0.027887187898159,0.051770687103271,-0.086255230009556,-0.063411630690098) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.020897386595607,-0.001282915356569,0.238040447235107,-0.113533362746239,0.103470429778099,-0.001087673706934,0.028077261522412,-0.091003037989140,0.021072337403893,0.072580769658089,0.137974545359612,-0.168942868709564,-0.108231939375401,0.010785955935717,0.067509382963181,-0.217941194772720) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.011365114711225,-0.032024022191763,-0.024791872128844,0.156175002455711,0.069452919065952,-0.136547639966011,0.115282602608204,-0.139422953128815,-0.056889705359936,0.126452684402466,-0.014153422787786,0.182439148426056,-0.004070560447872,0.049915160983801,-0.061762981116772,-0.077825590968132) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.050607558339834,0.122157558798790,0.043484825640917,-0.009956642054021,-0.450282156467438,-0.045629344880581,0.319039791822433,0.097748979926109,-0.115113422274590,0.170043677091599,-0.139651745557785,0.194365516304970,-0.243610277771950,-0.235260918736458,0.091315947473049,-0.022231504321098) * MODEL6_texOff(vec2(0,0));
res += mat4(0.043519552797079,0.060384754091501,0.182352095842361,0.035615064203739,0.164128005504608,-0.133520379662514,-0.264193475246429,-0.128161460161209,-0.041490353643894,-0.018157498911023,-0.074344396591187,0.245877310633659,0.288395553827286,-0.043901525437832,-0.126522317528725,-0.048348248004913) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.026596097275615,-0.107168324291706,-0.106265403330326,-0.086049206554890,-0.035196706652641,-0.015760902315378,0.027728594839573,-0.195563092827797,-0.014625191688538,0.120269395411015,-0.052759677171707,0.025485919788480,0.025728417560458,-0.056903149932623,0.010565905831754,0.135747924447060) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.059845153242350,0.043415803462267,0.095962934195995,-0.194663882255554,0.006447368301451,-0.081177242100239,-0.275222629308701,-0.110732376575470,-0.014134043827653,0.190432310104370,0.007169196847826,0.044428545981646,0.094541281461716,-0.238863185048103,-0.088399305939674,0.033105358481407) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.043084587901831,0.020911773666739,0.027040481567383,0.094184026122093,-0.237800881266594,-0.088241137564182,-0.167219236493111,-0.042296551167965,-0.044612064957619,-0.029962612316012,0.207407563924789,0.196046769618988,0.101478122174740,0.122750990092754,0.031270854175091,0.057824477553368) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.127389550209045,0.207143262028694,-0.061842650175095,-0.020620526745915) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(0.203728348016739,0.121669739484787,-0.050634104758501,-0.046391844749451);
res += mat4(0.016299720853567,-0.246312856674194,-0.119814388453960,-0.074533440172672,-0.029505914077163,-0.140254616737366,-0.049275945872068,0.177758306264877,-0.170724824070930,0.137905955314636,-0.019807193428278,-0.044563941657543,-0.072725661098957,0.112488433718681,0.097838588058949,0.053089279681444) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.071114428341389,0.016194598749280,0.101740688085556,0.092272154986858,-0.031555514782667,0.050835341215134,0.056441470980644,0.112995229661465,0.007032668218017,0.234293103218079,-0.031012559309602,0.008121552877128,-0.020433723926544,0.198765307664871,-0.053579386323690,0.240330055356026) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.013530635274947,-0.013456551358104,0.028786472976208,0.008008633740246,-0.075549907982349,0.060384582728148,0.065843991935253,-0.029881110414863,0.020730540156364,-0.000877192593180,-0.024500628933311,0.010816544294357,0.016774732619524,0.107781171798706,-0.105701960623264,0.119475476443768) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.137076392769814,-0.314240723848343,-0.149788618087769,0.041139330714941,-0.010692746378481,-0.146458610892296,-0.276405006647110,-0.062214814126492,-0.094309635460377,0.272416442632675,0.043055191636086,0.042774561792612,-0.124277703464031,-0.195047512650490,0.196874067187309,0.057762861251831) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.247343242168427,0.091051518917084,-0.032211955636740,-0.155032604932785,-0.116414241492748,0.494931578636169,0.007483171764761,-0.011421680450439,0.005862209480256,0.432129591703415,-0.014921355992556,0.038873158395290,-0.085535086691380,-0.235379591584206,0.026008376851678,-0.025908075273037) * MODEL1_texOff(vec2(0,0));
res += mat4(0.152277350425720,0.147147640585899,0.159229040145874,0.021286815404892,-0.073864482343197,-0.022892460227013,0.093750029802322,-0.166506767272949,-0.154290392994881,0.196683883666992,-0.027096621692181,-0.004937261808664,-0.074509784579277,-0.149514749646187,-0.158871799707413,-0.036315530538559) * MODEL1_texOff(vec2(0,1));
res += mat4(0.059225142002106,-0.192216813564301,-0.099407225847244,-0.032852180302143,0.065710455179214,-0.005374179687351,-0.011658678762615,0.083900235593319,-0.093013703823090,0.287931770086288,0.035370398312807,-0.042093243449926,-0.059555046260357,-0.134733572602272,0.094728849828243,0.040182400494814) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.010600482113659,-0.028447192162275,-0.040701039135456,-0.027532156556845,-0.027834568172693,0.042222127318382,0.058011889457703,-0.040025435388088,-0.125029161572456,0.291468113660812,0.098565354943275,-0.058338694274426,-0.011588551104069,-0.224971652030945,-0.033140085637569,0.056512665003538) * MODEL1_texOff(vec2(1,0));
res += mat4(0.112953223288059,0.017303934320807,-0.028282187879086,-0.044629376381636,-0.051828291267157,-0.072625041007996,-0.054414030164480,0.177985653281212,-0.110466495156288,0.513318598270416,-0.046634897589684,-0.031892344355583,-0.025547903031111,0.097794026136398,-0.016085332259536,0.014259417541325) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.154449611902237,0.211618199944496,0.100719705224037,-0.244939476251602,0.004286086186767,0.180650517344475,0.003037042450160,-0.049648713320494,0.231523394584656,0.033347010612488,0.011472241953015,-0.111746914684772,-0.158185318112373,-0.003051156643778,-0.045563999563456,0.075231738388538) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.046602271497250,0.163213625550270,-0.087314739823341,0.201051041483879,0.065652966499329,0.294683933258057,-0.045226182788610,-0.141123890876770,-0.038408823311329,-0.018537968397141,-0.043272878974676,-0.427487194538116,0.006392536684871,0.195280268788338,-0.146489530801773,-0.184866413474083) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.068510726094246,-0.022508949041367,-0.083348080515862,0.172339990735054,0.006480026990175,0.188686147332191,0.036010209470987,-0.164500370621681,-0.010656943544745,-0.153252854943275,0.112006068229675,-0.089133724570274,0.089704245328903,0.137365207076073,-0.061118762940168,-0.062159396708012) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.266908288002014,-0.217125460505486,-0.087997458875179,0.101208508014679,-0.099112272262573,0.046351559460163,0.139880403876305,-0.064584404230118,0.195684760808945,-0.076046377420425,0.049032259732485,-0.373013973236084,-0.185510367155075,-0.165786355733871,-0.166865602135658,-0.205086350440979) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.134883239865303,-0.221587732434273,-0.124119341373444,0.170435383915901,0.099340282380581,0.056056752800941,-0.035340048372746,-0.057579435408115,-0.259020715951920,-0.031536459922791,-0.143922269344330,0.066108018159866,-0.242074877023697,-0.110591128468513,0.029637565836310,-0.236207753419876) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.084284439682961,-0.171877250075340,-0.297032296657562,0.097717687487602,0.024300433695316,0.123005829751492,0.021816100925207,0.028700325638056,0.126488238573074,-0.125669047236443,0.026696931570768,0.229872331023216,-0.017280910164118,0.216184332966805,-0.115673653781414,-0.148109376430511) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.276199489831924,-0.130516394972801,0.024357866495848,0.038507305085659,-0.108355931937695,-0.333132237195969,-0.139252066612244,-0.234268561005592,-0.079813964664936,0.078905671834946,0.192705303430557,0.258793592453003,0.005545266903937,-0.242175951600075,-0.061490055173635,-0.198909029364586) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.093780674040318,-0.128861710429192,0.127087846398354,-0.036837246268988,-0.042140241712332,-0.555609464645386,-0.001096490886994,-0.014804849401116,0.145071744918823,0.017364330589771,-0.058987990021706,0.266645640134811,-0.001440283376724,-0.117432154715061,-0.057726200670004,0.054679717868567) * MODEL2_texOff(vec2(1,0));
res += mat4(0.103691130876541,-0.176183968782425,-0.002461567753926,0.008128822781146,-0.031195957213640,0.120349533855915,-0.045997776091099,-0.112418569624424,-0.026297787204385,-0.023515082895756,0.070216409862041,0.078296169638634,-0.039885289967060,-0.042696036398411,-0.077280320227146,-0.289510637521744) * MODEL2_texOff(vec2(1,1));
res += mat4(0.150592222809792,0.094379037618637,-0.030824098736048,-0.129947513341904,0.261706858873367,-0.065737538039684,-0.122569650411606,-0.148666188120842,-0.057272963225842,0.114686235785484,0.138032883405685,0.084623694419861,-0.096625156700611,-0.129957586526871,0.137816652655602,0.003850707551464) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.093327626585960,0.009850616566837,-0.098361566662788,0.187821358442307,-0.125044614076614,0.204462513327599,0.106641575694084,-0.262571841478348,-0.003749268595129,0.041377261281013,-0.110421843826771,0.097152948379517,0.072689674794674,-0.104744814336300,-0.073812134563923,0.240639910101891) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.159026309847832,-0.216239988803864,-0.043828252702951,0.081334881484509,-0.029228309169412,-0.088558785617352,0.018309559673071,0.107297062873840,0.039211161434650,-0.007069590501487,0.003659996902570,0.135402500629425,-0.039226979017258,-0.008550934493542,0.054037649184465,0.070711046457291) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.291998028755188,-0.183765888214111,-0.493047028779984,0.137930944561958,0.264170795679092,-0.118767052888870,0.010614512488246,-0.027920655906200,0.365173906087875,0.048295177519321,0.139208525419235,0.024605149403214,-0.209000274538994,-0.204710304737091,0.217926785349846,0.022140257060528) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.096376329660416,0.034625664353371,0.339793443679810,0.166436985135078,-0.050720501691103,0.218754500150681,0.043519791215658,0.021544715389609,-0.143183529376984,-0.017986064776778,-0.256829589605331,-0.171824038028717,0.026075487956405,-0.949023663997650,-0.086488395929337,0.248163729906082) * MODEL3_texOff(vec2(0,0));
res += mat4(0.026221100240946,0.187579363584518,0.040439601987600,-0.263566136360168,0.012187027372420,-0.235118746757507,-0.122698843479156,0.328497856855392,-0.026203924790025,-0.210129141807556,-0.123287618160248,-0.207599267363548,-0.040971904993057,-0.370575010776520,0.006289393175393,-0.145483747124672) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.178693994879723,-0.176518514752388,0.024663265794516,0.212826445698738,0.240122646093369,-0.248595163226128,-0.050692498683929,0.067692883312702,0.079707711935043,0.032576367259026,0.049454573541880,-0.179695710539818,-0.171553030610085,-0.231715187430382,-0.023850735276937,-0.053678721189499) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.012879491783679,0.054466471076012,-0.115229621529579,-0.253671258687973,0.160391181707382,-0.275605648756027,-0.113626532256603,0.099405594170094,0.178484126925468,-0.045019887387753,-0.119915746152401,0.165237456560135,-0.068195156753063,-0.396768003702164,0.034281603991985,0.084109075367451) * MODEL3_texOff(vec2(1,0));
res += mat4(0.017847510054708,0.058876372873783,-0.049490336328745,-0.074156396090984,0.026334432885051,-0.437495708465576,-0.038243856281042,-0.039734337478876,0.013458226807415,-0.074016019701958,-0.010231660678983,-0.050547353923321,-0.003758006263524,-0.132031008601189,0.008729938417673,-0.101064667105675) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.083770990371704,0.082093477249146,0.060307443141937,0.308439731597900,0.088200360536575,0.282672137022018,-0.010999475605786,-0.169928938150406,-0.284027427434921,-0.022900324314833,-0.050273068249226,0.069119349122047,0.261783093214035,-0.168545290827751,-0.147095650434494,-0.067337088286877) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.003202884225175,0.168291151523590,0.009944002144039,0.440590709447861,0.036964733153582,-0.089490808546543,0.125762194395065,0.450568288564682,0.105361960828304,-0.111339457333088,-0.102743379771709,0.173328369855881,0.220998495817184,-0.201452910900116,-0.061292290687561,-0.260365337133408) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.001623205491342,0.263353347778320,0.056392475962639,0.246058821678162,0.000011605792679,-0.035959266126156,-0.010599962435663,0.108390204608440,-0.007243293337524,-0.048951670527458,-0.028486115857959,0.073097802698612,0.021401315927505,-0.214183762669563,-0.030009457841516,-0.175413265824318) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.125936880707741,0.233023032546043,0.106167018413544,0.289586097002029,0.020494056865573,0.111997865140438,0.059485983103514,0.159639388322830,-0.211549192667007,0.136149615049362,-0.009452951140702,0.149638995528221,-0.023149043321609,-0.130464375019073,0.185858473181725,-0.319432109594345) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.117415219545364,-0.124219410121441,0.176045328378677,-0.355238586664200,0.243557274341583,0.093752153217793,0.111837953329086,-0.226988270878792,-0.074494130909443,0.181329652667046,-0.035267326980829,-0.053011342883110,0.331611037254333,-0.158289432525635,0.072023645043373,0.020921012386680) * MODEL4_texOff(vec2(0,0));
res += mat4(0.016739003360271,0.120381362736225,0.035220909863710,0.172354534268379,-0.156708374619484,-0.123348377645016,-0.093998171389103,-0.401594787836075,0.159433111548424,0.130848914384842,-0.018459090963006,0.045274823904037,0.176909700036049,-0.243478760123253,0.075382135808468,0.155986085534096) * MODEL4_texOff(vec2(0,1));
res += mat4(0.041716717183590,0.068289086222649,0.051936715841293,0.071057051420212,-0.073403492569923,0.278185099363327,0.031575724482536,0.230443865060806,-0.179492056369781,0.081448264420033,-0.014627826400101,-0.015523226931691,0.078955926001072,0.220617145299911,-0.058140397071838,0.066959820687771) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.148134142160416,-0.143264874815941,0.077218368649483,0.053056430071592,0.141453251242638,-0.123504765331745,-0.047624964267015,-0.122882641851902,-0.009412001818419,0.041581138968468,0.129665166139603,-0.297474741935730,0.071492396295071,-0.050010390579700,0.056745398789644,-0.121607169508934) * MODEL4_texOff(vec2(1,0));
res += mat4(0.120727449655533,0.322384744882584,-0.005015850532800,0.388603538274765,0.157004401087761,0.141627162694931,0.189759254455566,0.071757212281227,-0.014893732964993,-0.177604600787163,0.081997327506542,0.078511506319046,0.118936024606228,-0.024014770984650,-0.002306424546987,0.060477744787931) * MODEL4_texOff(vec2(1,1));
res += mat4(0.045077349990606,-0.023493219166994,0.237035214900970,-0.092404305934906,-0.010344688780606,-0.221012502908707,-0.032888650894165,0.052274212241173,-0.015832796692848,0.100112386047840,-0.038560222834349,-0.072234936058521,-0.115278050303459,0.046663794666529,0.136822998523712,-0.008566688746214) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.154390215873718,0.004266793839633,0.163627639412880,-0.142720356583595,0.010904387570918,-0.009900902397931,-0.031468417495489,-0.116539381444454,-0.375290811061859,0.094102069735527,-0.265032529830933,-0.118841119110584,-0.119979396462440,0.085314571857452,0.026732070371509,0.062177021056414) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.045348308980465,-0.235239058732986,0.101594693958759,0.212546691298485,0.104891262948513,0.106534495949745,0.139323994517326,0.003998970147222,0.132556751370430,-0.107077017426491,0.068386852741241,0.077739328145981,-0.075630299746990,0.125222086906433,0.137502163648605,-0.052249975502491) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.071838647127151,0.194470003247261,0.066086314618587,0.253444403409958,0.127726361155510,-0.116560868918896,-0.002646337030455,-0.344527482986450,0.224937573075294,-0.137643545866013,-0.148726254701614,-0.224418997764587,0.568253576755524,0.145415797829628,-0.257571965456009,-0.086909219622612) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.164624899625778,0.089118838310242,0.001814144081436,0.190707474946976,-0.114533960819244,-0.032878525555134,-0.083657838404179,0.366265624761581,-0.659228622913361,-0.108221031725407,-0.447444140911102,0.064402535557747,-0.089805565774441,-0.144259259104729,0.436202079057693,-0.654992222785950) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.225654616951942,0.132178768515587,-0.287165403366089,0.052304785698652,0.077935285866261,-0.148081719875336,-0.064535394310951,0.231499984860420,0.163265481591225,-0.029718190431595,0.098187632858753,0.342120379209518,-0.069732151925564,-0.061245750635862,0.048846244812012,0.076346836984158) * MODEL5_texOff(vec2(0,1));
res += mat4(0.016462711617351,-0.029998384416103,0.012721982784569,0.255612850189209,0.034500751644373,0.097975634038448,-0.075725458562374,-0.018313471227884,0.052926588803530,0.033908423036337,0.099617324769497,0.096982873976231,0.266148030757904,-0.028650360181928,-0.059603430330753,-0.138586521148682) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.166116893291473,-0.142692834138870,0.182375103235245,-0.257425189018250,0.021527055650949,0.224506586790085,0.261556446552277,-0.053825683891773,-0.282118648290634,0.014496388845146,0.166055694222450,0.112421110272408,-0.022648595273495,-0.091340489685535,-0.051571521908045,0.043008264154196) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.166709944605827,-0.120965346693993,0.042728170752525,-0.288120955228806,-0.111960530281067,0.088681399822235,-0.025625592097640,-0.035245608538389,0.007914871908724,0.007609776686877,-0.010308677330613,-0.243779957294464,-0.106081292033195,-0.126651570200920,-0.023835854604840,0.021662071347237) * MODEL5_texOff(vec2(1,1));
res += mat4(0.160148769617081,0.171362414956093,0.004524997435510,-0.154883503913879,0.068583406507969,0.062790319323540,0.094605982303619,0.066545173525810,-0.369181573390961,0.092679075896740,-0.087839990854263,-0.067948438227177,0.161474302411079,-0.064648739993572,-0.048661023378372,-0.121157333254814) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.163546934723854,0.301976203918457,0.070486970245838,0.016010219231248,0.056678604334593,-0.017111362889409,0.072504222393036,0.130019456148148,-0.134777933359146,0.066822111606598,0.019047360867262,-0.254251688718796,-0.104051239788532,-0.088437572121620,-0.151831671595573,0.197894066572189) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.360333651304245,0.230335995554924,0.089181162416935,0.013573285192251,-0.034598249942064,0.097916975617409,-0.011374314315617,-0.039438426494598,-0.017303707078099,0.175646990537643,-0.043720114976168,-0.178599357604980,-0.154762774705887,-0.144584164023399,0.100792691111565,0.114075623452663) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.006984347011894,-0.102991990745068,0.198421359062195,-0.012391549535096,0.222211018204689,-0.076190717518330,-0.161364406347275,-0.045381952077150,-0.706267535686493,0.074979931116104,0.046665437519550,0.042250078171492,0.093417935073376,0.108443118631840,-0.288201302289963,0.200272709131241) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.003596411319450,-0.397036463022232,-0.002662766026333,0.077221810817719,0.038970604538918,0.280932307243347,0.177378073334694,0.035116266459227,-0.188344031572342,-0.027524914592505,0.054678987711668,0.205526277422905,-0.041628364473581,-0.028983294963837,0.208803966641426,-0.121698975563049) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.139462992548943,-0.301941156387329,-0.122764915227890,0.071613892912865,0.068239897489548,-0.108597218990326,-0.052260391414165,0.038305640220642,0.002367513254285,-0.429280638694763,-0.119159042835236,0.142990648746490,-0.118795126676559,-0.110704600811005,-0.043259002268314,-0.092050716280937) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.010944411158562,0.015584778040648,-0.050917863845825,0.031415339559317,-0.046003729104996,0.102394185960293,0.040799647569656,0.008074152283370,-0.418216913938522,0.047697219997644,0.079700030386448,-0.026116693392396,0.079371422529221,0.123979717493057,-0.115347012877464,0.194973036646843) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.091663688421249,-0.008361147716641,-0.005638809874654,-0.196923121809959,0.075703151524067,-0.056985650211573,0.064041897654533,0.015211452730000,-0.296386331319809,-0.107349425554276,0.040863163769245,0.014177474193275,0.081269577145576,0.037865292280912,-0.199912548065186,-0.205471664667130) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.009915146045387,-0.014252702705562,0.041492447257042,0.047143779695034,-0.009337767027318,-0.159245014190674,0.023285772651434,-0.131000578403473,-0.030761638656259,-0.135638892650604,0.025577630847692,-0.148279398679733,-0.101916708052158,-0.074242621660233,0.091211065649986,-0.149348750710487) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.060492977499962,-0.008565997704864,0.434616595506668,-0.133189469575882) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(-0.032257664948702,-0.025988951325417,-0.031942348927259,0.312989622354507);
res += mat4(-0.034783713519573,0.034073654562235,-0.081840775907040,-0.238931417465210,0.144901961088181,0.044189564883709,-0.191650807857513,0.206945747137070,0.209974795579910,-0.043322470039129,-0.021959297358990,0.133873179554939,-0.141844585537910,-0.001884265686385,-0.025205980986357,-0.354017376899719) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.043555259704590,0.013048372231424,0.107529215514660,-0.039569891989231,0.335103124380112,0.020953433588147,0.125783562660217,0.052788659930229,0.247106492519379,0.085065461695194,0.051812306046486,-0.147210091352463,-0.118137203156948,0.007358661387116,0.025744657963514,-0.360638439655304) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.074816122651100,-0.017542200163007,0.056413706392050,-0.049551486968994,-0.209957599639893,-0.016784299165010,0.136662036180496,-0.014230594038963,-0.003084541065618,0.005167272407562,0.140329301357269,0.034644450992346,0.088716216385365,0.040949426591396,-0.017786893993616,-0.062446501106024) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.202761396765709,0.020608978345990,-0.087108522653580,-0.169845551252365,0.419102668762207,-0.011447141878307,-0.064834527671337,-0.062330532819033,0.215027108788490,0.026444198563695,0.102882310748100,-0.006743275094777,-0.597159206867218,0.055658970028162,0.023107148706913,-0.744584619998932) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.397952407598495,-0.058987330645323,-0.192887455224991,-0.081447511911392,0.480433315038681,0.042536195367575,-0.026861660182476,-0.099857427179813,0.321714520454407,-0.030802495777607,0.110008105635643,0.005748559720814,0.046628922224045,0.096776992082596,0.123363316059113,-0.930274367332458) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.079047508537769,0.060278896242380,-0.030416727066040,0.157621994614601,-0.237829878926277,-0.001105674542487,0.184737250208855,-0.011616106145084,0.299942344427109,0.130723521113396,0.085882231593132,0.163759127259254,0.132924407720566,0.005168373230845,-0.025239162147045,-0.199868813157082) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.035154297947884,-0.263889014720917,0.026537494733930,-0.188846781849861,-0.099829368293285,-0.022545605897903,0.071989633142948,0.031755905598402,0.220779284834862,0.091298706829548,0.043200820684433,-0.017899904400110,0.166092798113823,0.118556320667267,0.045008264482021,-0.144359946250916) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.229553237557411,-0.006374754011631,-0.102380052208900,0.076713219285011,-0.103024952113628,-0.173124685883522,-0.047049239277840,0.135955497622490,0.370952010154724,0.011342444457114,0.231107458472252,0.009614787064493,0.068173550069332,-0.150900572538376,0.020661937072873,-0.464417159557343) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.092345893383026,-0.077677935361862,-0.007903379388154,-0.045027486979961,0.057871550321579,0.066384375095367,0.117148466408253,-0.176329150795937,0.290852516889572,-0.170681148767471,0.163021966814995,-0.071129590272903,0.148114964365959,-0.121211051940918,0.122451916337013,-0.000534695864189) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.122815035283566,0.013683239929378,0.155296042561531,0.075908623635769,-0.032106034457684,-0.036156866699457,-0.089032277464867,0.057450275868177,0.057539019733667,-0.117933839559555,-0.290575146675110,0.113016940653324,0.108398489654064,-0.020846445113420,0.108890995383263,0.056286927312613) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.077283635735512,0.011069893836975,0.373820245265961,-0.341526061296463,0.031689852476120,-0.037998478859663,-0.056464839726686,0.172917366027832,0.066277578473091,-0.032077744603157,-0.602673888206482,0.167018264532089,-0.036428119987249,0.104935266077518,0.241943627595901,0.092985294759274) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.206846430897713,-0.000724879384506,0.155869156122208,-0.032192129641771,0.056420780718327,-0.091973155736923,-0.106080226600170,0.165246114134789,0.041048992425203,0.072234682738781,-0.010160753503442,-0.103101745247841,0.128801539540291,-0.094113998115063,0.059720546007156,-0.007465553004295) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.052073199301958,0.132659092545509,0.159818127751350,0.010624300688505,-0.062845878303051,-0.080035313963890,0.101555258035660,0.088004976511002,-0.109185405075550,0.077589921653271,-0.032070916146040,-0.007432485464960,0.053644035011530,-0.129554301500320,0.107372678816319,-0.232740238308907) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.140296056866646,-0.022668475285172,0.154908046126366,-0.187337264418602,-0.115209728479385,-0.015737216919661,0.457549124956131,-0.164792120456696,-0.080896086990833,0.306536525487900,-0.130346089601517,0.197984248399734,0.008907673880458,-0.231009319424629,0.079251065850258,-0.202992618083954) * MODEL2_texOff(vec2(0,0));
res += mat4(0.066878408193588,0.030377199873328,0.068321727216244,0.016148665919900,0.210479378700256,0.103418603539467,0.031616605818272,0.139324903488159,0.013091273605824,0.133021116256714,-0.272878825664520,-0.142804741859436,-0.088969439268112,-0.000762758369092,0.129663214087486,-0.022757748141885) * MODEL2_texOff(vec2(0,1));
res += mat4(0.011208715848625,-0.239019274711609,0.045009724795818,0.173906520009041,-0.187754541635513,0.111416988074780,-0.020415266975760,0.280501246452332,0.072391524910927,0.055654026567936,0.137067079544067,0.033093653619289,-0.019973820075393,-0.015813790261745,0.154193311929703,0.488300383090973) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.033802006393671,-0.248765408992767,-0.111927099525928,0.008075595833361,-0.052932869642973,0.428516924381256,0.089214779436588,-0.033079270273447,0.316969126462936,-0.512074172496796,0.269455641508102,0.082150600850582,0.099047623574734,-0.061143077909946,0.194457098841667,0.117170959711075) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.065942436456680,-0.295592069625854,0.017856445163488,0.098107971251011,0.027424177154899,0.060960192233324,0.134042665362358,0.034749582409859,0.116946160793304,-0.321676939725876,0.041198458522558,0.081300109624863,0.060945820063353,0.056532207876444,0.225995689630508,-0.021419636905193) * MODEL2_texOff(vec2(1,1));
res += mat4(0.111826889216900,-0.020491627976298,0.034950278699398,-0.225893929600716,0.257700592279434,0.089769043028355,-0.199508130550385,0.186423167586327,-0.028040001168847,0.213941439986229,0.025680417194963,0.091777198016644,-0.241400554776192,-0.148222878575325,0.200410783290863,0.087003797292709) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.017017565667629,0.311354100704193,0.197155699133873,-0.058413200080395,0.111732430756092,0.003981874790043,-0.373286634683609,-0.029908539727330,-0.287619590759277,0.207648098468781,-0.130526483058929,0.062298946082592,-0.423592299222946,-0.166794762015343,0.218530073761940,-0.151075720787048) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.005035642534494,0.309384793043137,0.025938993319869,0.102747812867165,-0.172463402152061,-0.013651382178068,-0.153130814433098,-0.005669285077602,0.085547789931297,0.313007503747940,-0.002856834093109,-0.063325971364975,0.078696683049202,-0.162846148014069,0.041517287492752,-0.103864252567291) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.038027137517929,0.110037408769131,-0.011325822211802,-0.133527681231499,-0.089733958244324,0.006905848160386,-0.042468890547752,-0.026644470170140,-0.073938623070717,-0.023328842595220,0.161944553256035,0.075597085058689,-0.143935725092888,-0.072753295302391,-0.112369887530804,0.072677589952946) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.328410267829895,-0.299613863229752,0.043953977525234,-0.158955350518227,-0.442360311746597,0.023309223353863,-0.110049411654472,0.208900779485703,-0.096539624035358,0.126095265150070,-0.081201724708080,0.000378750264645,-0.141104191541672,-0.081055313348770,-0.121076375246048,-0.198001071810722) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.050630617886782,-0.255655884742737,-0.034003123641014,0.015205201692879,-0.374437779188156,-0.146165788173676,-0.282168835401535,0.089244097471237,-0.149956241250038,-0.002866954542696,0.033694140613079,-0.005633307155222,0.091981232166290,-0.092818014323711,0.119685053825378,-0.153314411640167) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.159226328134537,-0.094799585640430,-0.107005298137665,0.037779867649078,-0.127654716372490,-0.079399436712265,-0.096704371273518,-0.051608789712191,0.054065760225058,0.000729952531401,-0.121779292821884,0.044924903661013,-0.034708172082901,0.156503021717072,-0.021911764517426,0.209116846323013) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.135978370904922,-0.091840587556362,-0.131921157240868,0.268771737813950,-0.187905147671700,-0.190146818757057,-0.174143448472023,0.026955364271998,-0.008408197201788,-0.409352600574493,0.108046978712082,0.002393971197307,0.001517839613371,0.381268531084061,0.113189734518528,0.035114746540785) * MODEL3_texOff(vec2(1,0));
res += mat4(0.104691714048386,-0.035080976784229,0.093646042048931,-0.102558590471745,-0.238831922411919,-0.204765185713768,-0.198337048292160,0.181786254048347,-0.062028899788857,-0.347367584705353,0.046251427382231,-0.186388671398163,0.104541637003422,0.260254561901093,0.053903568536043,-0.034479942172766) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.036601927131414,0.054175417870283,-0.185986757278442,0.100937351584435,0.052204139530659,-0.005088334903121,0.091892100870609,-0.023683344945312,0.017547655850649,0.026889231055975,0.121743373572826,-0.086287550628185,-0.128894090652466,0.073206342756748,0.071465991437435,-0.051375407725573) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.135903730988503,0.023924099281430,-0.403301179409027,0.172011688351631,-0.133206203579903,0.193198546767235,0.282677352428436,0.091354347765446,-0.095111727714539,0.075352139770985,0.102193452417850,-0.210202395915985,-0.399142891168594,0.060668811202049,-0.024167312309146,0.335056245326996) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.076052933931351,-0.034191228449345,-0.181312903761864,0.170396223664284,-0.120815858244896,0.025595003738999,-0.090529419481754,0.218717217445374,0.057280130684376,0.086569517850876,0.210023760795593,-0.059486892074347,-0.335036724805832,0.001058974885382,-0.008689894340932,0.320526003837585) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.148036554455757,-0.106038086116314,-0.149290338158607,0.223046213388443,-0.017488777637482,0.015785992145538,-0.290769726037979,0.082294963300228,0.055757805705070,-0.175236746668816,0.059666216373444,0.261741399765015,0.388201802968979,-0.097928047180176,-0.058225914835930,-0.034871932119131) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.065785318613052,-0.090709872543812,-0.263311207294464,0.065466798841953,-0.208701804280281,-0.292348384857178,-0.051927022635937,-0.005455850157887,-0.054159644991159,-0.015324114821851,-0.206008151173592,-0.121782645583153,-0.296521306037903,0.031239841133356,-0.189452797174454,0.124276041984558) * MODEL4_texOff(vec2(0,0));
res += mat4(0.278601825237274,0.265828698873520,0.061145160347223,0.095621727406979,-0.049220863729715,-0.114035621285439,0.214238792657852,0.094702757894993,-0.122253939509392,0.023238422349095,-0.056572388857603,-0.182361483573914,-0.323515027761459,-0.053585823625326,-0.135846868157387,-0.023438964039087) * MODEL4_texOff(vec2(0,1));
res += mat4(0.050861462950706,-0.046978689730167,-0.040273550897837,-0.066244035959244,-0.008774623274803,-0.024134771898389,-0.086935259401798,0.092286616563797,0.062981396913528,0.030768200755119,0.054518822580576,-0.035064887255430,0.053103439509869,-0.140305384993553,-0.139375418424606,0.027582289651036) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.241192460060120,0.316880792379379,-0.375325530767441,-0.194771423935890,-0.022595250979066,0.045125976204872,-0.220616251230240,-0.016679989174008,-0.023331835865974,0.033619582653046,-0.096556387841702,-0.158211261034012,-0.234096273779869,0.040220879018307,-0.088615089654922,-0.042106542736292) * MODEL4_texOff(vec2(1,0));
res += mat4(0.209168285131454,0.199001595377922,-0.081327959895134,0.313772261142731,0.175054088234901,0.014440643601120,0.071289584040642,0.024597786366940,0.158176735043526,-0.113989382982254,0.092189207673073,-0.002246104180813,-0.205855339765549,0.009569782763720,-0.193888768553734,-0.029828350991011) * MODEL4_texOff(vec2(1,1));
res += mat4(0.143870934844017,0.060561481863260,-0.005068290047348,-0.012538404203951,-0.255321204662323,0.104766421020031,-0.207212254405022,0.107498414814472,-0.038167186081409,0.098749734461308,0.047265887260437,0.043632801622152,-0.002539886161685,-0.073250092566013,0.105538651347160,0.192204236984253) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.147985652089119,-0.083866886794567,-0.101499438285828,0.021508876234293,-0.176222249865532,-0.068838030099869,-0.203054443001747,-0.047367256134748,-0.097120247781277,0.257617056369781,-0.007933554239571,0.084810391068459,-0.163404285907745,-0.001551256282255,-0.057935040444136,-0.060782060027122) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.001809113891795,0.029993347823620,-0.113004148006439,-0.461301147937775,-0.181959524750710,-0.079424329102039,-0.211691111326218,-0.155464559793472,0.239476680755615,0.119462683796883,-0.103155814111233,-0.315085768699646,0.238318488001823,-0.079927295446396,-0.060799192637205,-0.160677626729012) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.000116693205200,-0.021507810801268,-0.288479328155518,-0.198570534586906,-0.124667733907700,-0.007912881672382,0.173541381955147,0.051123492419720,-0.106659017503262,-0.073363684117794,0.112431943416595,0.072893649339676,-0.074724584817886,0.071295812726021,0.091196022927761,0.071822904050350) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.154236093163490,-0.015878759324551,-0.128313750028610,0.369567900896072,-0.015569308772683,0.164127290248871,0.258449107408524,0.267735242843628,-0.170373931527138,0.113475874066353,0.068119816482067,0.130471616983414,-0.274853676557541,0.166282981634140,-0.659701764583588,-0.078490532934666) * MODEL5_texOff(vec2(0,0));
res += mat4(0.193236306309700,-0.081287443637848,-0.086413204669952,-0.290881007909775,0.019780050963163,0.194741904735565,0.006356167607009,-0.187325179576874,0.120587326586246,0.160911828279495,0.017873035743833,-0.141310885548592,-0.032652936875820,0.175202190876007,-0.009457682259381,-0.002276186132804) * MODEL5_texOff(vec2(0,1));
res += mat4(0.133051678538322,-0.126836538314819,0.001614489941858,0.037831317633390,0.396914362907410,-0.095933884382248,0.176297903060913,0.034118078649044,0.056001417338848,0.084716618061066,-0.023400679230690,0.118985749781132,-0.046630349010229,0.006081264000386,0.074681155383587,-0.062237363308668) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.044239513576031,-0.034776356071234,0.126638159155846,0.358443051576614,0.346751838922501,-0.206419393420219,-0.028510587289929,-0.090254940092564,-0.040365196764469,-0.255896568298340,0.073382340371609,0.032979220151901,-0.155211925506592,-0.080391861498356,0.010293587110937,-0.010519941337407) * MODEL5_texOff(vec2(1,0));
res += mat4(0.104178681969643,0.060686785727739,0.213409647345543,-0.058140859007835,-0.367143213748932,-0.337202668190002,0.043867491185665,-0.042288068681955,0.001977437874302,-0.270547896623611,-0.077366419136524,-0.176768571138382,0.116273455321789,-0.040065079927444,-0.073620334267616,0.155435368418694) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.100895307958126,-0.104796104133129,0.074904128909111,-0.214066639542580,0.228190511465073,-0.044078841805458,0.142097726464272,0.026314571499825,-0.094293572008610,-0.000320908788126,0.051528073847294,0.043228439986706,-0.080093920230865,0.050536692142487,0.170938804745674,-0.044552277773619) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.030168037861586,-0.174224868416786,-0.124485678970814,-0.000172529384145,0.189722418785095,0.005141978152096,-0.019982432946563,-0.084956206381321,-0.022991597652435,-0.058122359216213,-0.125324532389641,-0.247605413198471,-0.065728954970837,0.189604967832565,0.281230747699738,0.001415152684785) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.197364389896393,-0.079030886292458,0.055015098303556,0.042276136577129,-0.099336244165897,0.005550357047468,0.027691187337041,-0.114036463201046,0.047323599457741,-0.177824363112450,-0.083731122314930,-0.482362002134323,0.130588158965111,0.130319014191628,-0.083892785012722,-0.025633927434683) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.125994935631752,0.095054291188717,0.059662830084562,-0.049382828176022,0.225846052169800,0.056254044175148,0.061408456414938,0.267159998416901,-0.053782537579536,-0.005928376223892,0.026376647874713,0.053219798952341,0.036814641207457,0.033294972032309,-0.042884185910225,0.106047742068768) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.320439755916595,0.350203156471252,0.198134139180183,0.287699043750763,0.113407351076603,-0.144056528806686,0.056713446974754,-0.190261065959930,-0.469095379114151,0.016289245337248,0.168288975954056,-0.729721069335938,0.047792222350836,-0.222128063440323,-0.229856163263321,-0.046541467308998) * MODEL6_texOff(vec2(0,0));
res += mat4(0.565397918224335,0.102158419787884,-0.050302520394325,-0.072183705866337,-0.181755602359772,0.079908333718777,0.063994735479355,0.004703209735453,-0.136934533715248,0.144022241234779,0.084594860672951,-1.115098834037781,-0.201203957200050,-0.061188489198685,0.046985946595669,-0.096466362476349) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.151032954454422,0.046198293566704,-0.104886770248413,0.020926015451550,-0.065322466194630,0.026274982839823,-0.228294640779495,0.043914243578911,0.023780295625329,-0.055197454988956,0.069094277918339,0.157563611865044,-0.043672829866409,-0.090650945901871,-0.047338474541903,-0.237767711281776) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.108906082808971,0.009326988831162,0.045541495084763,-0.107069902122021,-0.192728534340858,-0.100193038582802,-0.109121717512608,-0.044312197715044,0.014632527716458,-0.087629027664661,0.045877344906330,-0.303143292665482,-0.165590345859528,-0.165110632777214,0.038716807961464,-0.086890257894993) * MODEL6_texOff(vec2(1,0));
res += mat4(0.033091291785240,-0.037204314023256,0.035254046320915,0.058381352573633,-0.127678155899048,-0.122874528169632,-0.055582270026207,-0.072050161659718,0.014538195915520,-0.024178327992558,0.043010443449020,-0.610567390918732,0.186366423964500,0.055176042020321,0.162958353757858,0.039652157574892) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.109431676566601,-0.161525696516037,-0.056222625076771,0.044132843613625) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(-0.067277483642101,0.218153819441795,-0.172800868749619,-0.006294262129813);
res += mat4(0.035836335271597,0.047356873750687,-0.225799530744553,0.081835612654686,0.051074065268040,-0.010431145317852,-0.011019840836525,-0.124500408768654,-0.092372559010983,0.058962825685740,-0.016526883468032,0.054873991757631,-0.007528773974627,-0.026985969394445,0.005119635257870,0.003602225100622) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.065849773585796,-0.275891333818436,0.048405420035124,-0.133601859211922,-0.090195395052433,-0.030290497466922,-0.260258018970490,0.057740803807974,-0.070081867277622,0.129665106534958,-0.022223437204957,0.082338489592075,0.027611907571554,-0.237592816352844,-0.143517896533012,-0.062094513326883) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.076445914804935,-0.024157566949725,-0.126439720392227,-0.040265090763569,-0.086111500859261,0.079927593469620,0.098705314099789,-0.006426373030990,-0.089510388672352,-0.114030003547668,-0.050248686224222,-0.123564988374710,-0.019005263224244,-0.216439589858055,0.003821633057669,-0.189902976155281) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.086767964065075,0.039913170039654,0.168721452355385,-0.087058760225773,0.195816144347191,0.000392104557250,0.004832546226680,-0.056679733097553,-0.129963040351868,0.061923630535603,-0.058532685041428,0.032456398010254,-0.044463675469160,-0.072714149951935,0.026711557060480,-0.057175945490599) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.167791381478310,-0.545053839683533,-0.113784573972225,-0.336508125066757,-0.056205678731203,0.068280898034573,-0.122432306408882,0.002991710789502,-0.136318787932396,0.079952046275139,0.027156142517924,0.040755748748779,0.035277139395475,-0.652688801288605,-0.019427279010415,-0.576280713081360) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.114177823066711,0.071857146918774,-0.126735717058182,0.020426753908396,-0.157618641853333,0.160093590617180,-0.128256022930145,0.044299542903900,-0.254487842321396,0.102280631661415,-0.030270704999566,0.134629502892494,-0.119182609021664,-0.608072042465210,-0.043890811502934,-0.535881996154785) * MODEL1_texOff(vec2(0,1));
res += mat4(0.226771742105484,0.059026632457972,-0.073628358542919,-0.057839985936880,0.014556164853275,0.019689150154591,0.109383493661880,-0.064104080200195,-0.359902858734131,0.050714753568172,-0.068488098680973,0.007516822312027,-0.256122082471848,-0.004953701980412,-0.016204092651606,-0.088486753404140) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.058395028114319,-0.013950153253973,0.001557322335429,-0.032224219292402,-0.014835604466498,0.045482851564884,0.194222941994667,-0.006914031691849,-0.199371919035912,0.031005250290036,0.047407634556293,-0.081168644130230,-0.175993531942368,-0.080465734004974,0.006230440922081,-0.299159824848175) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.035870667546988,0.037920773029327,0.047201097011566,0.145350262522697,-0.134951040148735,-0.100273102521896,0.029269075021148,0.205226078629494,-0.081772103905678,0.056750580668449,-0.027505109086633,-0.043890312314034,-0.194255784153938,-0.227680459618568,0.110300868749619,-0.387948840856552) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.138031139969826,0.029780508950353,0.013059637509286,0.022986218333244,0.008645089343190,0.003958391956985,0.083526015281677,0.010314177721739,0.011345988139510,-0.070051014423370,-0.013187657110393,0.167563766241074,-0.002312042983249,0.048611365258694,0.043412826955318,-0.097887232899666) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.120336368680000,-0.059230454266071,0.009721169248223,-0.079133026301861,-0.041741136461496,0.011895457282662,0.170780703425407,0.016698358580470,0.127083435654640,-0.080459892749786,-0.117672964930534,-0.047653712332249,0.164762109518051,-0.090263806283474,0.053472276777029,0.314432531595230) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.050402574241161,-0.303016930818558,0.119025759398937,-0.172235965728760,-0.021209837868810,0.065067127346992,0.010025667026639,-0.010513540357351,-0.038555253297091,0.337217807769775,-0.085131198167801,-0.024185668677092,0.269734770059586,-0.197475925087929,0.002898998325691,0.259633421897888) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.010895743034780,0.105993650853634,-0.096793726086617,-0.163352549076080,0.047839008271694,0.093314997851849,-0.106626734137535,-0.029660403728485,-0.050387781113386,0.076406590640545,0.089210733771324,-0.062694877386093,0.070873044431210,0.021082948893309,-0.012482071295381,-0.082820653915405) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.049913000315428,-0.185569807887077,0.185399651527405,0.051352746784687,0.031036917120218,0.039913181215525,0.538998246192932,-0.062008906155825,0.045910995453596,0.098345756530762,0.270764291286469,-0.215152561664581,-0.093648187816143,0.167742371559143,0.090847089886665,0.037397976964712) * MODEL2_texOff(vec2(0,0));
res += mat4(0.041456315666437,-0.316455572843552,0.043814249336720,0.026452634483576,-0.002052934141830,0.006676533725113,0.083807721734047,0.012715687043965,0.265862226486206,-0.252570092678070,0.269681453704834,0.418516546487808,0.254036992788315,0.053093809634447,0.059430930763483,0.457366645336151) * MODEL2_texOff(vec2(0,1));
res += mat4(0.132798075675964,-0.084156207740307,0.068993739783764,0.181824564933777,-0.022521607577801,0.014994571916759,-0.084766440093517,0.076316706836224,-0.005461196880788,0.111239649355412,0.084109738469124,-0.053216967731714,0.182398840785027,-0.087329313158989,-0.064905591309071,-0.042351320385933) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.064206175506115,-0.137337997555733,-0.141203582286835,0.040294371545315,-0.200661018490791,0.277679830789566,-0.090142831206322,-0.171604946255684,0.192035973072052,-0.006033045239747,-0.026950975880027,0.102057583630085,0.358652323484421,-0.028921648859978,-0.067490845918655,0.031326007097960) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.074793078005314,-0.105994045734406,0.081876397132874,-0.143920049071312,-0.014179139398038,-0.014387979172170,0.018916027620435,0.159769788384438,-0.067853391170502,0.184333682060242,0.053793288767338,0.085655987262726,-0.022186288610101,0.003530558431521,-0.054073456674814,0.131645873188972) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.024991799145937,0.017783708870411,-0.035330042243004,-0.085253529250622,0.190286323428154,-0.243861600756645,-0.076869592070580,0.016569584608078,0.051885567605495,0.043630354106426,0.075558431446552,-0.077721983194351,-0.049734160304070,-0.016644150018692,0.020587006583810,0.051354590803385) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.112178668379784,-0.235377162694931,0.306280493736267,-0.084670387208462,0.281548231840134,-0.057978365570307,-0.214315861463547,-0.162397056818008,0.102601729333401,0.139002919197083,0.058572214096785,0.043299667537212,-0.098205357789993,0.066585540771484,0.197747275233269,0.041245061904192) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.068432338535786,0.154095947742462,0.110486626625061,0.128319293260574,0.002852115314454,0.084109731018543,-0.046380456537008,-0.042639877647161,0.128686085343361,-0.202555611729622,-0.085388146340847,0.181584015488625,-0.097401797771454,-0.017543075606227,0.188310667872429,0.037898242473602) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.141879245638847,0.181998163461685,-0.065273150801659,-0.053739372640848,0.192208856344223,-0.020575514063239,0.061048556119204,0.035755954682827,0.077680274844170,0.043022941797972,-0.154404729604721,-0.070110253989697,0.166831105947495,-0.100500032305717,-0.085213437676430,-0.247737899422646) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.018060691654682,-0.705952465534210,-0.312274247407913,0.173902675509453,0.021196663379669,-0.106442436575890,0.032782558351755,0.093210160732269,0.149345844984055,0.229402318596840,0.180889725685120,-0.427994221448898,0.129358962178230,-0.026117874309421,0.212993547320366,-0.111517138779163) * MODEL3_texOff(vec2(0,0));
res += mat4(0.090231962502003,-0.049458805471659,-0.186136826872826,-0.016395810991526,-0.081058241426945,-0.178821384906769,0.004289264790714,0.254175007343292,0.157589539885521,0.088500224053860,0.068548195064068,0.423546403646469,0.129950955510139,-0.104890115559101,0.182690456509590,-0.030209403485060) * MODEL3_texOff(vec2(0,1));
res += mat4(0.191088318824768,0.214565142989159,0.039050694555044,0.079723648726940,0.215129047632217,-0.014743499457836,-0.006418837234378,0.039688792079687,-0.126398473978043,0.042943149805069,0.074552215635777,0.023329013958573,0.032387789338827,0.003425377188250,-0.033559188246727,0.033350832760334) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.285711437463760,-0.199639707803726,-0.014590309932828,0.124421082437038,0.388474702835083,-0.057475384324789,-0.064124636352062,-0.001644756062888,0.023521997034550,-0.010617293417454,0.040473174303770,-0.314297318458557,-0.763859331607819,0.066549144685268,0.095603607594967,0.109547376632690) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.387588530778885,-0.083401441574097,-0.037705942988396,-0.301250874996185,0.347170770168304,0.044338542968035,-0.002650353591889,0.245870783925056,0.067039035260677,-0.049949061125517,-0.029767058789730,0.184207782149315,-0.413253277540207,-0.026790805160999,0.024239705875516,-0.082807905972004) * MODEL3_texOff(vec2(1,1));
res += mat4(0.034662403166294,0.055358365178108,0.044698543846607,-0.027010140940547,0.031006172299385,-0.056277893483639,-0.122863337397575,-0.013427186757326,0.114977292716503,-0.036915171891451,0.107953943312168,-0.061672862619162,0.271384477615356,-0.088135465979576,-0.137666434049606,0.169069424271584) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.091834932565689,-0.045180369168520,-0.048792369663715,0.070303559303284,0.055584937334061,0.184615060687065,0.191089197993279,-0.033446215093136,0.044420525431633,-0.137152150273323,-0.099425211548805,0.085952304303646,0.263608932495117,-0.113311074674129,-0.156428575515747,0.189985707402229) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.030221099033952,-0.121840707957745,0.166816830635071,0.130154594779015,0.053838565945625,0.132668122649193,0.091950960457325,0.156218260526657,-0.108795233070850,-0.163553670048714,-0.054754376411438,-0.128067046403885,0.168769404292107,0.015689350664616,-0.036047190427780,0.181513443589211) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.094680577516556,-0.007968701422215,0.069968700408936,0.005982047412544,-0.188798457384109,0.235839769244194,0.153281673789024,-0.229068592190742,0.366159737110138,-0.111738599836826,-0.035993505269289,0.100532911717892,-0.163077488541603,0.022355955094099,0.074486806988716,0.360962241888046) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.226985901594162,0.038852047175169,-0.044949617236853,0.078830689191818,-0.127080917358398,-0.061619713902473,0.070268690586090,0.002407976659015,-0.014049641788006,-0.107018031179905,0.210927113890648,0.042739238590002,0.120687849819660,-0.065662696957588,-0.183122411370277,0.423173338174820) * MODEL4_texOff(vec2(0,0));
res += mat4(0.012123886495829,0.086342506110668,-0.070595413446426,-0.343646168708801,-0.048162810504436,0.235842198133469,0.122560478746891,-0.203325524926186,-0.044553890824318,-0.216909214854240,0.205597564578056,-0.026501083746552,0.197248697280884,-0.127558469772339,-0.012845771387219,0.302221387624741) * MODEL4_texOff(vec2(0,1));
res += mat4(0.097955875098705,-0.000997843220830,-0.131937921047211,0.011121933348477,-0.062515266239643,0.042177386581898,-0.166009739041328,0.043298114091158,0.021060124039650,0.103974871337414,-0.076240487396717,0.059865705668926,-0.124780341982841,-0.041974872350693,-0.070072032511234,-0.015060964971781) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.144888877868652,0.021147342398763,-0.004616795573384,-0.023060070350766,0.041463058441877,0.114310532808304,0.005728334654123,0.181707724928856,-0.088860385119915,-0.168748959898949,-0.019315207377076,0.145534709095955,0.021519783884287,0.171481251716614,-0.082016050815582,0.239499896764755) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.182681739330292,-0.075443722307682,0.011549958959222,-0.122113965451717,0.176110610365868,-0.098767511546612,-0.140338405966759,-0.036346688866615,-0.197390794754028,0.155985966324806,-0.073503486812115,-0.117447338998318,0.323918074369431,-0.060824565589428,-0.020557904615998,0.383114963769913) * MODEL4_texOff(vec2(1,1));
res += mat4(0.100557714700699,0.066810712218285,-0.126160487532616,-0.173062428832054,0.058979645371437,-0.044381547719240,-0.052511833608150,0.079353258013725,0.035002551972866,-0.039938081055880,-0.009134698659182,-0.055792406201363,-0.249572098255157,-0.000077909964602,-0.028641480952501,-0.003256163327023) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.057443439960480,-0.066730350255966,-0.203934833407402,-0.138265296816826,0.146945849061012,-0.145532190799713,0.029720108956099,0.188196495175362,0.033028729259968,-0.020427953451872,-0.187995702028275,-0.043837793171406,-0.244287848472595,-0.049093991518021,-0.257659196853638,0.130573153495789) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.130372554063797,-0.101944312453270,0.006486381869763,0.050920173525810,0.061344437301159,-0.061828091740608,-0.079424828290939,0.015096442773938,0.029231237247586,-0.205938994884491,0.020752850919962,-0.100731484591961,-0.281412899494171,0.054194096475840,-0.293607413768768,-0.083156004548073) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.221498355269432,0.094855062663555,0.074231080710888,0.005202869419008,0.086963474750519,-0.013950058259070,0.153110966086388,-0.007159985601902,-0.102570824325085,-0.094433702528477,-0.098569326102734,0.123580731451511,-0.058072745800018,-0.139700591564178,-0.034085664898157,0.126854836940765) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.026713522151113,-0.037133436650038,0.005365245975554,0.227355077862740,0.115337252616882,0.209169477224350,0.135752007365227,-0.135676696896553,-0.035630971193314,0.058434624224901,0.186848208308220,-0.063101671636105,0.078775309026241,0.116625569760799,-0.209173798561096,-0.224005371332169) * MODEL5_texOff(vec2(0,0));
res += mat4(0.016348229721189,-0.262416541576385,-0.050408821552992,0.259153962135315,0.068518608808517,-0.151337236166000,0.132931798696518,0.099972225725651,-0.129075348377228,-0.841344952583313,0.108126483857632,0.283443421125412,0.245783403515816,0.094971232116222,0.027582155540586,0.194838076829910) * MODEL5_texOff(vec2(0,1));
res += mat4(0.174735650420189,-0.040007054805756,-0.108935281634331,-0.027245087549090,0.040428791195154,0.022796764969826,-0.123551219701767,0.170614212751389,0.039318151772022,0.050030037760735,0.084268465638161,-0.036248520016670,-0.283087372779846,-0.047379486262798,0.014560213312507,0.109039060771465) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.040465120226145,0.150569930672646,0.048760276287794,0.075334936380386,-0.097836561501026,-0.040292795747519,0.006223792675883,-0.185928866267204,0.258213609457016,-0.050906896591187,0.074010446667671,-0.074668511748314,0.753242850303650,-0.034296914935112,0.170238703489304,-0.102028258144855) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.027508065104485,0.061903901398182,0.081839330494404,-0.123102620244026,-0.442730486392975,0.043209485709667,-0.032050728797913,-0.059539582580328,-0.120472267270088,-0.032819110900164,0.084695503115654,0.207306504249573,0.290642142295837,0.067828185856342,0.045402538031340,0.271303683519363) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.175272807478905,-0.189313486218452,-0.038657017052174,0.033363793045282,-0.351121187210083,-0.017078993842006,-0.043813221156597,-0.187842443585396,0.037324696779251,0.039069201797247,-0.014526845887303,0.088350266218185,-0.173149138689041,0.038201395422220,-0.012055158615112,-0.104692175984383) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.266725569963455,-0.004064097534865,0.244082719087601,-0.420676469802856,-0.124799303710461,0.088580243289471,-0.188881456851959,-0.177193880081177,-0.032855097204447,0.055715091526508,0.094213761389256,0.024118758738041,0.031908754259348,-0.076315313577652,0.402713596820831,0.054387800395489) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.145255699753761,-0.058309238404036,0.170514687895775,-0.162102445960045,-0.128587290644646,0.119968540966511,-0.065797269344330,-0.108922645449638,-0.070427469909191,-0.052312802523375,0.013037149794400,-0.242367580533028,0.085271067917347,-0.097902975976467,0.084641486406326,-0.023994455114007) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.181827619671822,-0.096695117652416,0.000690749788191,0.091942481696606,-0.505313277244568,0.028899569064379,-0.166093036532402,0.005965911783278,0.095234788954258,0.021170049905777,0.017895478755236,-0.100021734833717,-0.172300398349762,-0.039939932525158,0.132316142320633,0.100580856204033) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.028606029227376,0.016239628195763,-0.059829607605934,-0.004509020131081,-0.240608260035515,0.138134941458702,0.000117880648759,-0.374468743801117,-0.083463363349438,0.055828895419836,0.035578638315201,-0.005456733983010,-0.083874538540840,0.084949739277363,-0.217761516571045,-0.315277546644211) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.019044039770961,-0.207580178976059,-0.086574129760265,0.050296466797590,-0.116373024880886,0.159829810261726,0.085788197815418,-0.027412395924330,-0.083038792014122,-0.517625689506531,0.114872954785824,-0.262878566980362,0.202731937170029,0.279010415077209,-0.097294457256794,0.132898151874542) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.046174623072147,0.046935547143221,-0.053895235061646,0.040246706455946,-0.462464421987534,0.103251606225967,0.075604818761349,0.010777200572193,0.178754583001137,-0.064234592020512,-0.016324877738953,0.084469713270664,-0.043177656829357,0.032744266092777,0.039579223841429,-0.163891673088074) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.040018834173679,0.101781681180000,-0.137481957674026,-0.089728891849518,-0.297246098518372,0.027176951989532,-0.009631795808673,-0.215252190828323,-0.255717694759369,0.008719240315259,-0.059971798211336,0.100224629044533,0.190902560949326,-0.056404799222946,0.241818085312843,-0.077094450592995) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.051486123353243,-0.014808372594416,0.013987336307764,0.042296141386032,-0.374574184417725,-0.074811898171902,-0.045551855117083,-0.040023609995842,-0.373088657855988,0.068829737603664,-0.024223666638136,-0.241768598556519,0.196022436022758,0.083064526319504,0.050085447728634,0.242204606533051) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.062466137111187,0.002879580948502,-0.085309967398643,-0.100253872573376) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.243688538670540,-0.065756887197495,0.060758218169212,0.112578541040421);
res += mat4(0.040343135595322,0.012610568664968,-0.066343471407890,0.004920632112771,-0.043382368981838,-0.083699099719524,0.008571203798056,-0.077683642506599,-0.078390114009380,0.066382654011250,-0.002756413072348,0.188273280858994,-0.028734849765897,0.116101756691933,-0.029528656974435,0.001357920817100) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.083761379122734,0.093517810106277,-0.028426395729184,-0.014461512677372,0.062580801546574,-0.093339033424854,-0.061165817081928,-0.011124406009912,0.019669355824590,-0.020648662000895,-0.032823633402586,0.034207686781883,0.046031687408686,-0.081954091787338,-0.083489261567593,0.018572928383946) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.059135288000107,0.192204073071480,0.043508138507605,0.076591946184635,-0.071539565920830,0.057921532541513,0.039657991379499,0.051409881561995,-0.137051329016685,-0.096924237906933,-0.053261980414391,-0.019085949286819,0.044967882335186,-0.064815394580364,-0.177975952625275,-0.021275682374835) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.094293065369129,-0.040264889597893,0.022154575213790,-0.014792270027101,-0.019062815234065,0.175846517086029,0.081119075417519,0.009981371462345,-0.157363548874855,0.092281103134155,-0.083527006208897,0.091378837823868,-0.173891678452492,0.114687800407410,0.011273674666882,-0.349071443080902) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.211913287639618,-0.254198461771011,-0.011669643223286,0.107804708182812,0.309703707695007,-0.239318177103996,0.130650281906128,-0.064460963010788,-0.231254547834396,0.004308210685849,-0.220569148659706,0.109459526836872,-0.038508132100105,0.166444420814514,0.064627751708031,0.210592761635780) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.073826536536217,0.299848705530167,0.125975728034973,0.070860631763935,-0.062662005424500,0.027582824230194,-0.178869664669037,-0.077941477298737,0.007036414463073,-0.035973969846964,-0.198533162474632,0.196133315563202,0.045897521078587,-0.231663838028908,-0.051117751747370,-0.097195900976658) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.111303314566612,-0.231299236416817,-0.078207686543465,0.207508236169815,-0.257700771093369,-0.143505111336708,-0.165009886026382,-0.006171094719321,-0.157790780067444,0.223842486739159,-0.079990550875664,0.032877445220947,0.056755453348160,0.081801690161228,0.056436255574226,-0.153173208236694) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.002039913553745,-0.161830604076385,-0.206307470798492,-0.185718208551407,-0.104581840336323,-0.074152961373329,-0.138633623719215,0.184509366750717,-0.331048101186752,0.148233458399773,0.042318426072598,0.020070493221283,-0.013571770861745,0.083478122949600,0.077743649482727,-0.002305159345269) * MODEL1_texOff(vec2(1,0));
res += mat4(0.208006337285042,0.067349649965763,-0.016960071399808,0.026406206190586,-0.147953718900681,0.143973380327225,-0.085364021360874,-0.018653120845556,-0.218525022268295,0.195263534784317,-0.157434821128845,0.091453075408936,0.006536823697388,-0.141358360648155,0.084625780582428,-0.073146075010300) * MODEL1_texOff(vec2(1,1));
res += mat4(0.030537243932486,0.056470949202776,0.066631555557251,-0.106922924518585,-0.053983986377716,-0.230245769023895,-0.126822605729103,0.068091638386250,0.092666663229465,-0.122713573276997,-0.209351196885109,-0.069748006761074,-0.091273561120033,-0.039333179593086,0.011826110072434,0.078208148479462) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.018110064789653,0.067269824445248,0.153082683682442,0.083355829119682,-0.041289143264294,-0.091582521796227,-0.091214917600155,0.049754146486521,0.034390643239021,-0.005393329542130,0.116519443690777,0.006626183167100,-0.119688801467419,-0.021811855956912,-0.162110552191734,0.088908724486828) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.049540951848030,-0.010279383510351,0.041661377996206,0.071689099073410,0.028668522834778,-0.202391400933266,0.083682350814342,0.075708076357841,-0.063616871833801,-0.103551141917706,0.080113053321838,0.084698177874088,-0.062248248606920,0.026546766981483,0.202698349952698,0.100608870387077) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.145374238491058,0.138981267809868,0.027833083644509,-0.094477675855160,-0.147776976227760,0.069181375205517,0.092204518616199,0.220929041504860,0.187779739499092,-0.102907627820969,-0.168467521667480,0.162470936775208,-0.411314427852631,0.165805950760841,0.131580963730812,0.356301844120026) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.055837396532297,-0.045305579900742,-0.031402200460434,0.047003813087940,-0.114556826651096,-0.028283614665270,0.083355106413364,0.033661071211100,0.209289401769638,-0.031422600150108,-0.170716002583504,-0.139785096049309,-0.283510178327560,0.101104795932770,-0.103273294866085,0.259194135665894) * MODEL2_texOff(vec2(0,0));
res += mat4(0.110864192247391,-0.095442727208138,0.185487136244774,0.108122989535332,0.058512080460787,-0.064539492130280,-0.164878800511360,0.045106485486031,0.151540771126747,0.073179416358471,-0.010600817389786,-0.021949093788862,-0.026734504848719,0.083144254982471,0.047299202531576,0.316598862409592) * MODEL2_texOff(vec2(0,1));
res += mat4(0.208267465233803,-0.028310345485806,-0.147913292050362,-0.035860292613506,-0.240568116307259,0.196132928133011,-0.135161817073822,0.156886667013168,-0.118588052690029,0.122644282877445,-0.033038109540939,-0.255085378885269,-0.102440036833286,0.143430531024933,0.085475958883762,0.144045665860176) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.063292749226093,0.124790579080582,-0.089915767312050,-0.021708546206355,-0.275424987077713,0.045173905789852,0.277339369058609,0.038502003997564,-0.468454420566559,0.164048463106155,-0.437083512544632,0.106381028890610,-0.252622157335281,0.147451937198639,0.017170373350382,0.033599257469177) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.040752481669188,0.197334483265877,0.104176335036755,0.036854553967714,-0.061897560954094,-0.152486562728882,-0.236228361725807,0.081412456929684,-0.127145603299141,-0.082085065543652,0.075785301625729,0.115422643721104,-0.145840108394623,0.117988221347332,-0.020745081827044,0.205405518412590) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.034574821591377,0.198058038949966,-0.024621175602078,0.074112668633461,0.107833094894886,0.203621789813042,0.016278212890029,0.020459312945604,-0.079872727394104,0.006710724905133,-0.110141329467297,0.060278404504061,-0.040531363338232,-0.080042958259583,-0.275769978761673,-0.095013797283173) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.139172434806824,-0.038441341370344,0.292619258165359,-0.118843063712120,0.256969481706619,-0.165829956531525,-0.006033055949956,0.144015893340111,0.296372741460800,-0.227522268891335,0.116697937250137,-0.030263448134065,-0.071632906794548,0.225003123283386,-0.231145739555359,-0.001519162091427) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.108776941895485,-0.107964538037777,-0.056085299700499,-0.005320811644197,0.049801498651505,-0.056641783565283,0.227622404694557,-0.150993481278419,0.078993238508701,0.013502460904419,0.045716442167759,-0.082542903721333,0.038672871887684,-0.070047438144684,0.012317116372287,0.098757617175579) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.303918838500977,-0.160893693566322,-0.282546818256378,-0.078573808073997,0.237912416458130,-0.190808624029160,-0.188921570777893,0.173184379935265,-0.662935078144073,0.265563189983368,-0.132277041673660,0.237565875053406,-0.054281543940306,0.150503695011139,-0.188389405608177,-0.056090604513884) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.542769551277161,0.310591727495193,-0.314743310213089,0.062528632581234,-0.055628385394812,-0.126197129487991,-0.110568694770336,0.025966491550207,0.213551357388496,-0.024664957076311,0.372731089591980,0.079996898770332,-0.226163446903229,0.365417540073395,-0.064810104668140,-0.088053658604622) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.023387353867292,-0.143963262438774,-0.137901335954666,0.059526484459639,0.109655797481537,0.024869730696082,0.125235810875893,-0.055618222802877,0.148210510611534,0.091858483850956,-0.064112387597561,-0.029606450349092,-0.014133634045720,-0.055140480399132,-0.059592559933662,0.127530470490456) * MODEL3_texOff(vec2(0,1));
res += mat4(0.229771330952644,0.080376110970974,0.006231543142349,-0.046993870288134,0.115728817880154,-0.036567158997059,0.097687520086765,-0.055479705333710,-0.039629589766264,-0.046848494559526,-0.140491217374802,0.159518659114838,-0.009113383479416,0.261869400739670,-0.136151582002640,0.096863143146038) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.116787619888783,-0.128458887338638,0.199992433190346,0.209065571427345,0.194813624024391,-0.200506687164307,0.157476946711540,0.101445809006691,-0.040095392614603,-0.177789792418480,-0.251719832420349,-0.169136807322502,0.008720932528377,0.394979089498520,-0.056015517562628,-0.029093272984028) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.022688295692205,-0.095418684184551,0.063999786973000,-0.067786596715450,0.114144228398800,-0.258724957704544,0.121460214257240,0.067211657762527,-0.034572526812553,0.117403499782085,0.029717598110437,-0.148504793643951,-0.011151592247188,0.168299734592438,-0.048443160951138,0.008910945616663) * MODEL3_texOff(vec2(1,1));
res += mat4(0.070503115653992,-0.049476467072964,0.002954622497782,-0.274697750806808,-0.088692449033260,0.219373688101768,-0.215035542845726,-0.130165100097656,-0.022632097825408,0.159635215997696,0.254018604755402,0.010997111909091,-0.040942724794149,-0.039421323686838,0.104934260249138,0.223514467477798) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.104817673563957,-0.097388669848442,-0.130108445882797,-0.329203248023987,0.166132465004921,-0.192739874124527,0.013193891383708,-0.246904492378235,0.166955545544624,-0.005316224880517,-0.085413694381714,0.100272595882416,0.072257801890373,0.096553802490234,0.134444579482079,0.106480903923512) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.170388653874397,0.030303021892905,-0.073721565306187,-0.182542458176613,-0.009033281356096,0.082868166267872,-0.070507936179638,0.086425259709358,0.094222396612167,-0.091971106827259,-0.034375194460154,-0.004043735098094,-0.021633053198457,-0.005590948276222,0.179542303085327,0.108154565095901) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.034260835498571,-0.035467959940434,0.192726179957390,-0.432011932134628,0.107473194599152,-0.018176611512899,-0.067310199141502,-0.085311152040958,-0.183515220880508,-0.093849055469036,-0.031576771289110,0.153886124491692,0.189400434494019,0.021386273205280,0.033645004034042,0.118455342948437) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.221812576055527,0.136064857244492,0.045681547373533,-0.587220370769501,-0.227724596858025,0.131885826587677,-0.105545036494732,0.151790529489517,0.211118355393410,-0.341393589973450,0.069436706602573,0.205572947859764,-0.036303281784058,0.132801920175552,-0.171821296215057,0.129727572202682) * MODEL4_texOff(vec2(0,0));
res += mat4(0.128291085362434,-0.129380121827126,-0.253830373287201,-0.272976547479630,-0.038088914006948,-0.181009218096733,-0.212333962321281,-0.083045788109303,-0.032029021531343,0.034458871930838,0.067234888672829,-0.158762544393539,0.003986506257206,0.129619106650352,0.231524676084518,-0.013632358983159) * MODEL4_texOff(vec2(0,1));
res += mat4(0.075110651552677,-0.039712917059660,0.126124784350395,-0.296263784170151,-0.199381440877914,-0.198774814605713,0.043070588260889,0.059428036212921,0.083076439797878,0.070406749844551,0.193396657705307,-0.002124529331923,0.058960299938917,-0.299450010061264,-0.018369521945715,0.172410503029823) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.096545480191708,0.086639665067196,-0.070899888873100,-0.649273216724396,0.168956369161606,0.183545991778374,0.186445951461792,0.047270216047764,-0.168732017278671,-0.077213324606419,-0.127338126301765,0.013004051521420,-0.186985313892365,-0.270392566919327,0.230455890297890,0.046388205140829) * MODEL4_texOff(vec2(1,0));
res += mat4(0.177030056715012,-0.017255339771509,-0.040997851639986,-0.570906758308411,-0.081128872931004,-0.023695342242718,0.124427586793900,-0.111649334430695,-0.098981693387032,0.046216186136007,-0.022104309871793,-0.118019349873066,0.105045087635517,0.035931367427111,0.164121150970459,0.095604561269283) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.133900433778763,0.076374426484108,-0.077287383377552,0.067718639969826,-0.007613719906658,0.091125398874283,0.054476395249367,-0.172046408057213,-0.105602569878101,0.076272822916508,0.138566970825195,0.261611104011536,-0.045546870678663,-0.000753669475671,-0.016116021201015,-0.124117217957973) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.037385616451502,0.135156705975533,-0.006243903655559,0.202595904469490,0.048912037163973,0.310242056846619,0.093542851507664,0.077282331883907,0.002332200761884,-0.041547786444426,0.041563823819160,-0.018734045326710,-0.395155340433121,0.111028552055359,-0.150380820035934,0.083338007330894) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.168974235653877,0.157046362757683,0.035040572285652,0.008541569113731,-0.024581514298916,0.041273094713688,-0.019024655222893,0.031965076923370,-0.179853558540344,0.069542601704597,-0.171223312616348,-0.024540804326534,-0.131949096918106,-0.098009541630745,0.039226487278938,0.238170161843300) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.081701807677746,0.051078859716654,0.038064301013947,-0.084747813642025,0.096638269722462,0.029332427307963,0.201101213693619,-0.183555841445923,-0.141313418745995,-0.039477553218603,0.038631871342659,0.057561833411455,0.003426439128816,0.327524423599243,0.100560739636421,-0.129389867186546) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.040595304220915,-0.116717644035816,0.033122483640909,-0.281425207853317,0.164034470915794,-0.298868119716644,-0.011248998343945,-0.071714013814926,0.192167431116104,-0.160635843873024,-0.110044278204441,-0.701982796192169,0.657546162605286,-0.014559919014573,0.213617742061615,0.123915851116180) * MODEL5_texOff(vec2(0,0));
res += mat4(0.284999102354050,-0.219417020678520,-0.082144781947136,-0.138920992612839,0.043889272958040,-0.032078549265862,-0.112463928759098,-0.168983757495880,-0.245455801486969,0.118185751140118,0.013247878290713,0.118198834359646,0.216447085142136,0.134860187768936,-0.010643669404089,-0.096100427210331) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.052793309092522,-0.145073279738426,-0.071056984364986,0.337773948907852,0.088226094841957,0.146782487630844,-0.012444937601686,-0.149459019303322,-0.024332026019692,-0.060102157294750,-0.042018584907055,-0.074824273586273,0.015172040089965,0.065393127501011,-0.054107323288918,-0.074897080659866) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.021060870960355,-0.007960434071720,-0.008445540443063,0.147753909230232,0.091378502547741,-0.219944790005684,0.045727945864201,-0.062724731862545,-0.087100617587566,0.255753338336945,-0.102881282567978,0.127861872315407,0.059650663286448,-0.334668785333633,-0.022797636687756,-0.066307812929153) * MODEL5_texOff(vec2(1,0));
res += mat4(0.116316415369511,-0.115569174289703,-0.038024965673685,-0.056410424411297,-0.082227915525436,-0.057174909859896,0.011878998950124,-0.123095095157623,-0.100970327854156,-0.125140205025673,-0.067365750670433,0.266334235668182,0.023609170690179,0.042992230504751,-0.186577752232552,-0.035644438117743) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.010215903632343,0.029745988547802,-0.134029611945152,0.289558261632919,-0.011107712984085,-0.060362428426743,-0.179242938756943,-0.019733531400561,-0.049145605415106,0.008051459677517,0.129544243216515,-0.163068547844887,0.025423293933272,0.184656798839569,0.113944344222546,0.119176775217056) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.032724454998970,0.071443825960159,0.055045649409294,0.191586494445801,-0.102838061749935,0.009056003764272,-0.049909614026546,0.019881566986442,-0.079406246542931,0.016082974150777,0.171714439988136,-0.225203096866608,-0.185880899429321,-0.189481243491173,0.232766225934029,-0.109132289886475) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.052309144288301,-0.054840043187141,0.072996079921722,-0.091031439602375,-0.065192885696888,-0.063936188817024,-0.089247256517410,-0.006175565067679,-0.022416822612286,0.140359699726105,0.079930327832699,-0.015165778808296,0.006741168443114,0.024298159405589,-0.021743837743998,0.024171639233828) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.066250950098038,-0.015267081558704,-0.070719800889492,0.080884553492069,-0.021720424294472,0.142566367983818,0.182744100689888,0.043029814958572,-0.087410151958466,-0.090890459716320,-0.018979562446475,-0.439714491367340,-0.095995351672173,0.162873804569244,0.118941061198711,-0.081951789557934) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.278048783540726,0.174039542675018,0.089894719421864,0.010552776977420,0.311383962631226,-0.085299842059612,0.023295877501369,0.066352441906929,-0.191256463527679,-0.236558392643929,-0.048816498368979,-0.612614095211029,0.266681581735611,-0.200646489858627,0.199173822999001,0.054364953190088) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.113769367337227,-0.037785183638334,0.147387385368347,0.020102888345718,0.081807278096676,-0.006355619989336,-0.104638539254665,-0.103205040097237,-0.120641157031059,-0.121698699891567,0.231948897242546,-0.369178563356400,-0.175929099321365,-0.036760650575161,-0.112698130309582,0.055330660194159) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.004927822854370,-0.035610154271126,0.013515495695174,0.051611151546240,0.036357741802931,-0.063217669725418,-0.107181459665298,-0.241049155592918,-0.074402570724487,-0.024889310821891,0.009603473357856,0.013239732012153,-0.137335449457169,-0.076429083943367,-0.071460299193859,0.118444956839085) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.074499458074570,0.060952305793762,0.140516743063927,0.053282056003809,-0.038693364709616,0.009398669935763,0.013231182470918,0.054501388221979,-0.171639963984489,-0.016299119219184,0.102728031575680,-0.242756068706512,0.022035038098693,-0.115047112107277,-0.297261893749237,-0.057506103068590) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.040507022291422,0.072116248309612,0.025525461882353,-0.092831507325172,-0.045485083013773,-0.002899000653997,-0.036254998296499,-0.087586887180805,0.050706028938293,0.066293455660343,0.071944259107113,-0.104559265077114,-0.128780052065849,-0.060025468468666,-0.073800981044769,-0.121573016047478) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.381972312927246,0.575493037700653,0.502116560935974,0.057226534932852) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(0.183151602745056,-0.420727223157883,-0.097990989685059,0.146026626229286);
res += mat4(-0.123464226722717,0.049791555851698,-0.010200883261859,0.020354863256216,-0.080632381141186,0.023109702393413,-0.010670066811144,-0.035385917872190,-0.083248011767864,-0.095299333333969,0.021116806194186,-0.021807834506035,0.015217363834381,-0.104483425617218,-0.098582543432713,0.042341079562902) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.042352199554443,0.127739816904068,0.091875329613686,-0.115444183349609,0.052988521754742,0.043443869799376,-0.033795394003391,-0.017678439617157,0.094235688447952,-0.170205563306808,0.176557540893555,0.058604080229998,-0.112303704023361,-0.115541227161884,0.008688224479556,0.109683372080326) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.034378513693810,-0.041733834892511,-0.057468831539154,-0.045161183923483,-0.033598609268665,0.259313941001892,-0.008680693805218,0.040485303848982,-0.055327545851469,-0.088901184499264,0.093222327530384,0.011514066718519,0.062914565205574,-0.116251736879349,-0.027109285816550,0.056035716086626) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.137771695852280,0.277057319879532,0.207696169614792,0.161308616399765,-0.027132928371429,0.043875016272068,0.255175441503525,-0.005359919276088,0.097262158989906,0.035700339823961,0.099427752196789,-0.000911593553610,0.020261358469725,-0.055579967796803,0.181692108511925,0.014273920096457) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.153358146548271,-0.234741985797882,0.020915884524584,-0.316490769386292,-0.056671213358641,0.135622367262840,0.047200258821249,-0.111486293375492,-0.136278763413429,-0.085388354957104,0.035506859421730,0.012041526846588,0.065622925758362,-0.239921405911446,0.073534317314625,0.163215354084969) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.182057365775108,0.280924350023270,-0.217738166451454,-0.080035544931889,0.226412996649742,0.248788818717003,0.071629397571087,0.012870598584414,-0.190520957112312,-0.126634716987610,0.070211954414845,-0.105503715574741,0.147200748324394,-0.046307157725096,0.199986383318901,0.026492131873965) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.094250150024891,0.037954743951559,-0.031370401382446,0.088473230600357,-0.010249709710479,-0.054982565343380,0.088505201041698,0.084696948528290,0.095386430621147,0.039664465934038,0.007240992970765,0.060055255889893,0.102243423461914,0.077452607452869,0.145685479044914,-0.100369900465012) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.018676292151213,0.014786898158491,0.074540719389915,0.161836519837379,0.067006461322308,-0.050336558371782,0.284812599420547,0.032556764781475,0.246398806571960,-0.099676690995693,0.049287956207991,0.051822159439325,0.251665472984314,0.000935980293434,0.105177044868469,-0.027592685073614) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.017571285367012,0.086827836930752,0.108766116201878,-0.017300225794315,-0.093026570975780,-0.263188302516937,0.067646384239197,-0.093310639262199,-0.087388426065445,-0.050202064216137,0.134160295128822,-0.034905210137367,0.049209255725145,-0.023742422461510,0.188075304031372,-0.040982976555824) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.206139400601387,0.027658101171255,-0.010275564156473,0.037900727242231,-0.512543499469757,0.091313473880291,0.052020624279976,0.048326790332794,0.085852608084679,-0.074301831424236,-0.011917051859200,-0.043538555502892,-0.432195246219635,-0.053696479648352,0.088105283677578,0.124997861683369) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.232232928276062,0.053359206765890,0.152625903487206,-0.046304341405630,-0.590357184410095,0.144185885787010,0.031873762607574,-0.049644563347101,-0.169279739260674,-0.148700430989265,-0.146497994661331,-0.079432755708694,0.094727046787739,0.066072858870029,-0.074831590056419,0.117710694670677) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.124291121959686,0.047398030757904,0.163990482687950,-0.016321349889040,-0.172150924801826,0.051543772220612,0.071288019418716,-0.082693867385387,0.220929995179176,-0.305632352828979,-0.032793343067169,0.014899005182087,-0.230465665459633,0.004589429590851,0.017616579309106,-0.064002759754658) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.082737945020199,0.212304830551147,-0.119073741137981,0.047194484621286,-0.572245061397552,-0.032245900481939,-0.021438671275973,0.025430634617805,-0.117663234472275,-0.034348618239164,0.133640527725220,0.037866450846195,-0.380993485450745,0.043728746473789,-0.026471538469195,0.066784694790840) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.011430189944804,0.118138462305069,-0.078939639031887,0.085818260908127,-0.878522992134094,0.055160056799650,0.198358252644539,-0.079689070582390,-0.041362967342138,0.164203792810440,0.139035731554031,0.119732744991779,-0.207574710249901,-0.007228677626699,0.131255909800529,0.171934783458710) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.139609813690186,0.276466727256775,0.106193579733372,0.052466116845608,-0.379951477050781,-0.026802804321051,0.076960764825344,-0.065776832401752,-0.048116557300091,0.106412738561630,0.037467949092388,-0.247793823480606,-0.199104920029640,0.037890560925007,0.115756571292877,0.022770887240767) * MODEL2_texOff(vec2(0,1));
res += mat4(0.139542311429977,0.321327537298203,0.054290235042572,-0.072761505842209,-0.424146980047226,-0.027885902673006,-0.076917745172977,0.028825486078858,-0.250287085771561,-0.148128420114517,0.009677135385573,-0.120428591966629,-0.000815327453893,0.050737600773573,-0.188715264201164,0.000973449903540) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.066257327795029,0.321639657020569,-0.106258958578110,-0.278749018907547,-0.569771349430084,-0.120372518897057,0.056099146604538,0.018091864883900,0.044131018221378,0.113528713583946,-0.176664397120476,-0.631908476352692,-0.352333724498749,-0.023047382012010,-0.094759143888950,-0.038668505847454) * MODEL2_texOff(vec2(1,0));
res += mat4(0.056444484740496,0.025497488677502,-0.155053302645683,-0.136363491415977,-0.108905524015427,0.106147110462189,0.036093316972256,-0.003416521474719,0.121501281857491,-0.110647194087505,-0.026618136093020,-0.240827426314354,0.080843895673752,0.000490447855555,-0.067604489624500,0.050702217966318) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.041881758719683,0.028295295313001,-0.096403941512108,-0.021846828982234,0.054982248693705,0.297651797533035,-0.008167065680027,-0.055122852325439,-0.258420944213867,0.158921301364899,-0.167888239026070,0.043103434145451,-0.531447768211365,-0.028859438374639,-0.029817741364241,0.038977608084679) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.211282357573509,0.192926973104477,0.000964289472904,0.384112030267715,-0.095003560185432,0.152853637933731,-0.143458291888237,0.003762614680454,-0.006480460520834,0.203278362751007,0.017550285905600,0.185188591480255,-0.786744952201843,0.158000156283379,0.049475975334644,0.077613443136215) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.386924028396606,0.251890748739243,-0.006218429654837,0.115935556590557,0.084041111171246,0.375031620264053,-0.158877283334732,-0.091645687818527,-0.045434433966875,0.013978315517306,-0.126854807138443,-0.005834423005581,-0.406297981739044,0.028379816561937,0.166149958968163,0.040974091738462) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.151278480887413,-0.047350384294987,0.112723268568516,0.140874922275543,-0.067968286573887,0.133925646543503,0.170233011245728,-0.058469239622355,0.158493429422379,0.255294948816299,-0.074406355619431,-0.015099459327757,-0.268916308879852,-0.078692011535168,-0.024736527353525,-0.019842369481921) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.083811439573765,0.005729229189456,0.023425940424204,-0.650526523590088,0.176936596632004,0.153189972043037,-0.190762236714363,0.117185652256012,-0.057527560740709,-0.159872114658356,-0.063585221767426,0.171214655041695,-0.505493164062500,-0.023565556854010,0.266443461179733,0.095222018659115) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.094843931496143,-0.258705556392670,0.063531309366226,-0.085674360394478,0.019421646371484,-0.047205958515406,-0.161313578486443,-0.052142404019833,0.178292989730835,0.407708108425140,-0.255522668361664,-0.041616104543209,0.021016813814640,-0.134874552488327,0.103834100067616,0.026265582069755) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.029864633455873,-0.074870437383652,0.219478711485863,-0.177540957927704,-0.012558444403112,0.111987061798573,-0.212511569261551,-0.097080804407597,-0.022608775645494,-0.001493011717685,-0.062847457826138,0.144386395812035,0.214171409606934,-0.013207015581429,0.100470222532749,-0.088372394442558) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.066363677382469,0.213537380099297,-0.131554245948792,0.385542511940002,0.181554570794106,0.008903633803129,-0.373995810747147,-0.224293798208237,0.055111542344093,-0.054301060736179,0.197217687964439,-0.229266569018364,0.221080079674721,-0.032372079789639,0.074748031795025,0.054929200559855) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.124463118612766,0.036574851721525,0.056439347565174,0.067563645541668,0.230689331889153,0.104864649474621,-0.166491895914078,-0.023986879736185,0.049144383519888,-0.000934966432396,-0.093336038291454,-0.060750782489777,0.307974845170975,-0.354076653718948,0.049702450633049,0.032832391560078) * MODEL3_texOff(vec2(1,1));
res += mat4(0.163813591003418,0.205573618412018,0.028002528473735,0.009878177195787,0.109579138457775,-0.101938553154469,-0.102371796965599,0.025590565055609,0.343235701322556,-0.015484817326069,0.048559326678514,0.000019874321879,-0.062431849539280,0.028747685253620,-0.102821290493011,-0.015441161580384) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.179055646061897,0.093177989125252,-0.073999293148518,-0.070677213370800,0.019938442856073,-0.014186609536409,0.046942550688982,0.053029630333185,0.106073021888733,0.096747294068336,-0.031177418306470,-0.002776176203042,0.079063653945923,0.362568706274033,-0.108870558440685,-0.020620897412300) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.076455444097519,0.122864581644535,-0.063074879348278,-0.040255229920149,0.297802686691284,0.129054114222527,-0.132010772824287,-0.033964596688747,-0.195522800087929,-0.123248741030693,0.072630383074284,0.041474040597677,0.049310710281134,0.141330644488335,-0.090325854718685,0.014253425411880) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.140508860349655,0.082247644662857,-0.165047526359558,-0.155336827039719,-0.079220913350582,-0.107246182858944,0.254743099212646,0.014871218241751,0.007705140393227,0.004411998670548,0.059528078883886,-0.237101480364799,0.056523721665144,-0.104781597852707,-0.156241610646248,0.184211179614067) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.025964485481381,0.060844194144011,-0.165377542376518,-0.090325921773911,-0.104604132473469,0.030917592346668,0.053828313946724,-0.162773653864861,-0.131835743784904,-0.123998112976551,0.231232509016991,0.313835740089417,0.110999442636967,-0.027605772018433,0.007432565558702,0.050089102238417) * MODEL4_texOff(vec2(0,0));
res += mat4(0.140394628047943,0.176894843578339,0.002808359684423,-0.119526654481888,-0.105266623198986,-0.123173587024212,0.089944787323475,0.073931947350502,-0.136267781257629,0.152090296149254,-0.077931351959705,-0.147632136940956,-0.066086851060390,0.179502993822098,-0.421502143144608,-0.027575267478824) * MODEL4_texOff(vec2(0,1));
res += mat4(0.103258349001408,0.078756652772427,-0.085265010595322,-0.150771692395210,-0.065610945224762,-0.107113234698772,-0.155191183090210,0.036973327398300,-0.150153338909149,0.018816936761141,-0.036763820797205,-0.134003907442093,-0.146033570170403,-0.041810803115368,-0.036500360816717,-0.010310452431440) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.196480914950371,0.133547946810722,0.205014377832413,0.145393118262291,-0.129540190100670,0.017605118453503,-0.023117573931813,-0.058887463063002,0.085564926266670,0.128150641918182,-0.004593703895807,0.013567486777902,-0.178634703159332,0.042478214949369,0.041644919663668,0.032964792102575) * MODEL4_texOff(vec2(1,0));
res += mat4(0.158516779541969,0.062578171491623,0.050972707569599,-0.211651355028152,-0.154591321945190,0.092660553753376,-0.033989228308201,-0.199526518583298,0.153813719749451,0.235854431986809,0.138400077819824,0.036685369908810,0.026503123342991,0.101534552872181,-0.170319661498070,-0.046569257974625) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.149020358920097,0.057320732623339,0.126118496060371,0.054669898003340,0.146176695823669,0.147191479802132,0.026532061398029,-0.053303368389606,0.051990523934364,0.120884224772453,-0.231097638607025,-0.060441654175520,-0.068400762975216,-0.148364126682281,0.141274347901344,-0.136047735810280) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.057056177407503,0.042555972933769,-0.092853173613548,-0.043990626931190,-0.109602630138397,0.023240536451340,-0.228426203131676,-0.174971997737885,0.150916412472725,0.011668712832034,-0.006975428201258,0.116381689906120,0.116877503693104,-0.139554023742676,0.138060897588730,0.011208264157176) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.312827080488205,0.123952284455299,0.049983140081167,0.028693161904812,-0.208808958530426,0.024431284517050,0.058480951935053,-0.040506772696972,-0.106656827032566,0.056967593729496,-0.195019781589508,-0.124221771955490,-0.247413292527199,-0.166335403919220,0.130626395344734,0.011508327908814) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.044963698834181,-0.020258631557226,0.208027467131615,0.133849754929543,-0.036422308534384,-0.019129367545247,-0.002088389126584,-0.009778428822756,-0.035810209810734,-0.075939528644085,-0.192685469985008,-0.066600665450096,-0.018322791904211,-0.191638797521591,0.217888370156288,-0.073442623019218) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.012136018835008,0.312259405851364,-0.348649114370346,0.015436937101185,-0.127829536795616,0.051678985357285,0.098001874983311,0.046820323914289,-0.032464042305946,0.013196298852563,-0.020708883181214,0.100374892354012,-0.129191398620605,0.110814012587070,-0.431220233440399,-0.319765418767929) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.046782404184341,0.051308121532202,0.046285752207041,-0.111827164888382,0.099495172500610,0.165465012192726,-0.071548983454704,-0.011658830568194,0.096413381397724,0.117415994405746,0.059822488576174,-0.155979439616203,-0.146635815501213,0.721040070056915,0.010005934163928,-0.073995776474476) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.154837831854820,-0.034713193774223,-0.007265456952155,0.109435603022575,0.017806198447943,0.144901335239410,0.170967146754265,-0.013350173830986,0.098484732210636,0.055548567324877,0.029025146737695,0.020032577216625,0.100540667772293,-0.100503161549568,0.178424760699272,0.072564482688904) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.026686554774642,-0.118393957614899,-0.131582483649254,0.191167086362839,-0.235147446393967,0.035751715302467,-0.100644923746586,0.242727711796761,-0.100343890488148,-0.005577344447374,-0.024420680478215,0.060879994183779,0.069567359983921,0.069091521203518,0.211062207818031,-0.001157638267614) * MODEL5_texOff(vec2(1,0));
res += mat4(0.099973954260349,-0.037537094205618,0.124633096158504,-0.023250531405210,0.124158367514610,0.418598115444183,0.197459504008293,0.058455944061279,-0.086921073496342,0.007121128495783,0.041747827082872,0.030896628275514,-0.047609873116016,0.292653799057007,0.188190698623657,-0.024785771965981) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.108391672372818,0.012811800464988,0.149929627776146,-0.035675924271345,0.006325104273856,-0.288046360015869,0.072745107114315,-0.060483451932669,0.042479764670134,0.069929108023643,-0.153954952955246,0.026828570291400,0.003767339512706,0.004562058951706,0.091797888278961,0.009342541918159) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.048982083797455,0.049548938870430,0.232008725404739,-0.212011083960533,-0.048471603542566,-0.250945180654526,0.154689997434616,-0.064728096127510,0.118562459945679,0.126063182950020,-0.112161390483379,0.011852140538394,0.088310852646828,0.134189948439598,0.319032132625580,0.081025846302509) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.066497541964054,0.266633123159409,0.177136018872261,0.012240207754076,0.105490185320377,-0.116048626601696,0.038474462926388,0.073884136974812,-0.183793678879738,0.102416485548019,-0.000988985178992,-0.020330971106887,-0.024589207023382,0.178130313754082,-0.057861894369125,0.039049468934536) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.332755684852600,-0.083484299480915,-0.234976321458817,0.006483606528491,-0.028441706672311,-0.133225500583649,0.328804790973663,-0.113649159669876,0.190650165081024,0.040642142295837,-0.245581537485123,0.157057881355286,-0.014212062582374,-0.041480354964733,0.333158701658249,0.026100700721145) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.204947307705879,-0.086665347218513,0.122383430600166,-0.087583057582378,0.006995753385127,0.140118345618248,0.011195028200746,-0.075066462159157,0.037885952740908,-0.332409024238586,0.074663951992989,0.081656955182552,-0.136140108108521,0.023975403979421,-0.440898358821869,-0.160307928919792) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.084845907986164,0.036535721272230,-0.020090583711863,-0.005648020654917,0.051217462867498,0.273506909608841,0.100901730358601,0.046047236770391,-0.044600885361433,-0.181197196245193,-0.061816941946745,-0.045407775789499,0.007822615094483,0.456568032503128,0.018657863140106,0.098131619393826) * MODEL6_texOff(vec2(0,1));
res += mat4(0.025367189198732,0.212581276893616,0.009612388908863,-0.057603344321251,-0.042461864650249,-0.186294093728065,-0.089432127773762,0.058074545115232,0.106180414557457,0.092196933925152,-0.064970962703228,0.094850294291973,0.004348314367235,-0.099880889058113,0.025183605030179,-0.028884874656796) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.007946223020554,0.096165232360363,-0.054107431322336,0.115333274006844,0.025423685088754,-0.118944868445396,0.154264122247696,0.224307775497437,0.101826488971710,-0.082512572407722,-0.164904341101646,-0.025550248101354,0.023729138076305,-0.035457286983728,0.130218923091888,0.062151823192835) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.066023468971252,0.264667868614197,0.031142530962825,-0.030118327587843,-0.079521685838699,-0.095191918313503,-0.166753217577934,-0.012474197894335,0.182087555527687,-0.015530099160969,0.009581408463418,-0.019156776368618,-0.045609250664711,0.064549967646599,-0.096862010657787,-0.027998318895698) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.044005379080772,0.119214594364166,0.290662437677383,0.644138932228088) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(0.100723989307880,-0.301989465951920,-0.150153979659081,-0.044618073850870);
res += mat4(-0.112635947763920,-0.057542651891708,0.066361956298351,0.155937835574150,0.046885639429092,-0.123348131775856,-0.079633861780167,0.062310416251421,-0.064858660101891,-0.004873768426478,0.047463599592447,-0.193073228001595,0.139493271708488,-0.051338370889425,0.023468244820833,-0.079671829938889) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.089215204119682,-0.009512833319604,-0.139763772487640,-0.002819305052981,0.174585044384003,-0.157456815242767,-0.033352266997099,-0.014835329726338,-0.034520369023085,-0.151572376489639,0.174407169222832,-0.438292026519775,0.111941196024418,0.019229948520660,0.050595343112946,0.029760818928480) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.068837933242321,0.230717003345490,-0.006164387334138,-0.092952705919743,0.081101283431053,0.148069709539413,-0.055770158767700,-0.093453601002693,-0.018031412735581,0.020746534690261,-0.006916880141944,-0.210270762443542,0.060342255979776,-0.077442310750484,0.038283642381430,-0.060709219425917) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.047402556985617,-0.031357634812593,0.194144397974014,0.276543825864792,-0.098618775606155,-0.109825588762760,0.030574271455407,0.022449186071754,0.055514208972454,0.057687144726515,0.114094808697701,-0.382619947195053,0.041692104190588,-0.009468274191022,0.035300690680742,0.162087723612785) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.165583968162537,-0.016914132982492,-0.237843185663223,0.066001817584038,0.029706722125411,-0.097593411803246,0.045597352087498,-0.099710538983345,0.137881621718407,0.135582178831100,0.101321429014206,-0.259706705808640,0.037712108343840,0.076379485428333,0.071888454258442,0.129312857985497) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.061567597091198,0.142367392778397,0.007021881639957,-0.100046791136265,0.024093121290207,0.083463825285435,0.087168902158737,0.035832338035107,-0.147426202893257,0.018212279304862,0.034842427819967,0.124017588794231,0.017808653414249,0.022713458165526,-0.043436899781227,-0.019373523071408) * MODEL7_texOff(vec2(0,1));
res += mat4(0.022006159648299,0.077757067978382,0.100564181804657,-0.128076240420341,0.146183162927628,-0.083519741892815,0.074937440454960,0.019432490691543,-0.106804996728897,0.020495966076851,-0.041258238255978,0.092136509716511,-0.026392741128802,-0.151420846581459,0.049903187900782,0.157061710953712) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.077351965010166,0.039925206452608,0.121926359832287,-0.003784259082749,0.197724446654320,-0.153461471199989,-0.030604327097535,0.039081040769815,-0.192771434783936,0.019047796726227,-0.067735560238361,0.235483780503273,-0.159568071365356,-0.003515241201967,-0.102637588977814,-0.062163710594177) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.283536016941071,0.073624357581139,0.000024197641324,0.112793751060963,-0.103652387857437,0.180980592966080,0.032706171274185,-0.098021782934666,-0.213736355304718,-0.079697370529175,-0.048621017485857,-0.076532356441021,-0.032369442284107,-0.027564521878958,-0.000069659174187,0.144033014774323) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.073524735867977,-0.058484788984060,0.032711338251829,-0.087757363915443,-0.016044793650508,0.163716271519661,0.066701233386993,-0.230785131454468,-0.037675969302654,-0.041131600737572,0.115287765860558,0.151726350188255,0.100905545055866,0.022976247593760,-0.050470605492592,0.060419071465731) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.077719971537590,-0.053470786660910,-0.068540565669537,0.236474022269249,0.061177983880043,0.076184809207916,0.111180745065212,-0.061602029949427,0.019893094897270,-0.017637157812715,-0.012554721906781,-0.007953434251249,0.110586933791637,0.209421008825302,0.191736072301865,0.026486909016967) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.031965456902981,0.063742727041245,-0.069790683686733,-0.120180144906044,-0.079940192401409,0.046721514314413,0.025613900274038,-0.002846729243174,-0.074010632932186,-0.121883802115917,0.002244907664135,-0.084322549402714,-0.036583766341209,-0.119875125586987,0.039842225611210,0.071083009243011) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.055850025266409,-0.154924899339676,0.120321437716484,-0.009701065719128,0.060263179242611,0.234793439507484,0.061581190675497,-0.260470658540726,0.180867895483971,0.150414019823074,0.050936896353960,0.007260327227414,0.263132095336914,0.024035340175033,-0.114867068827152,-0.151435613632202) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.086377672851086,-0.064536839723587,-0.126791819930077,-0.049780055880547,0.085808709263802,0.018762063235044,0.103717081248760,-0.273524522781372,0.108646951615810,0.051103394478559,0.166392177343369,-0.317146480083466,-0.002128198742867,0.032140746712685,0.290281355381012,-0.195877671241760) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.072807744145393,-0.228153109550476,0.093514256179333,-0.016851205378771,0.035543665289879,0.090631552040577,-0.043887738138437,0.036631535738707,0.087635643780231,-0.410894483327866,-0.036437168717384,0.160411864519119,0.021666308864951,-0.184356525540352,-0.028657013550401,0.113582745194435) * MODEL8_texOff(vec2(0,1));
res += mat4(0.216430678963661,-0.008270144462585,-0.057046014815569,0.086511932313442,0.309682875871658,0.222127318382263,0.154641613364220,0.092598281800747,-0.162419497966766,0.042134005576372,0.019260823726654,-0.027293220162392,-0.251812845468521,-0.070191197097301,-0.120605267584324,0.000255812978139) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.004067525733262,-0.021338233724236,-0.041950769722462,0.130410760641098,0.119767151772976,0.356286942958832,-0.072677351534367,0.091857336461544,-0.008394975215197,0.272151142358780,-0.057819515466690,-0.182329565286636,-0.447012424468994,0.044702470302582,-0.172186285257339,0.101255603134632) * MODEL8_texOff(vec2(1,0));
res += mat4(0.064636841416359,0.138196811079979,-0.049981433898211,-0.064940251410007,0.168855503201485,0.176865592598915,0.027760675176978,-0.010249134153128,-0.005504964850843,-0.383603334426880,-0.054933782666922,0.130987435579300,0.034731470048428,-0.105511568486691,-0.029313994571567,-0.160057604312897) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.039152927696705,0.131630778312683,0.077266730368137,0.047863107174635,-0.230038315057755,0.129570484161377,0.102885849773884,0.100065000355244,0.100276991724968,0.010373700410128,0.096581444144249,-0.040007285773754,0.011383622884750,0.036683529615402,0.076243653893471,-0.069590024650097) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.031364314258099,0.023192923516035,-0.086110122501850,-0.146297737956047,-0.027954567223787,0.278593957424164,0.071297772228718,-0.031627923250198,0.023484716191888,0.210592955350876,0.143957719206810,0.053790930658579,-0.019096007570624,0.046617325395346,0.079272605478764,0.118382140994072) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.068201303482056,-0.008702278137207,-0.050732083618641,0.173891007900238,-0.030914993956685,-0.087257675826550,0.011122041381896,-0.009556415490806,0.068749465048313,-0.003710930002853,0.039528157562017,0.084746733307838,-0.089511640369892,-0.236385494470596,0.041804276406765,-0.107285127043724) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.068521484732628,-0.124616883695126,0.122674278914928,0.100002974271774,-0.448306173086166,-0.023588614538312,0.096767567098141,-0.187988370656967,0.064095564186573,-0.090537026524544,0.216023236513138,-0.055371608585119,-0.049066547304392,0.360466152429581,0.056886203587055,0.171530321240425) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.082333855330944,0.175053924322128,-0.351099848747253,-0.151163548231125,-0.225668951869011,-0.101200364530087,0.237179905176163,-0.289342582225800,0.009821210987866,-0.119545288383961,0.197528839111328,-0.256509900093079,-0.030350808054209,0.069150075316429,0.081608347594738,-0.022736685350537) * MODEL9_texOff(vec2(0,0));
res += mat4(0.058995231986046,0.211060732603073,0.019745234400034,-0.047022674232721,-0.128726258873940,0.077210195362568,-0.085540801286697,-0.062527276575565,0.164506569504738,0.063675239682198,0.046274177730083,-0.084980614483356,0.040551185607910,0.231785103678703,-0.075833715498447,-0.019870225340128) * MODEL9_texOff(vec2(0,1));
res += mat4(0.059730358421803,-0.075872726738453,-0.046958517283201,-0.011738013476133,-0.086815007030964,0.019042618572712,-0.139531522989273,0.089805312454700,0.223552674055099,0.040157705545425,0.017814384773374,0.007765726651996,0.157974362373352,0.406654298305511,-0.006604450754821,-0.007241634186357) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.104200050234795,0.137745052576065,0.042002070695162,0.023522226139903,-0.599782645702362,0.118229746818542,-0.227244243025780,0.161978051066399,0.048730835318565,0.083518519997597,0.011552332900465,0.178367301821709,0.152812853455544,0.127450913190842,0.002063615946099,0.006817689165473) * MODEL9_texOff(vec2(1,0));
res += mat4(0.058533538132906,0.134504795074463,0.018288873136044,0.025965919718146,-0.156545847654343,0.076994478702545,-0.052178461104631,-0.067309238016605,0.078296944499016,0.015175324864686,-0.131416663527489,-0.025316849350929,0.038120564073324,0.167988225817680,0.004409875720739,0.145168006420135) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.048656236380339,-0.239658474922180,-0.045679666101933,-0.381230741739273,-0.047711744904518,0.198947861790657,-0.116159968078136,-0.229865297675133,0.090386077761650,0.016544828191400,0.021254789084196,-0.117315292358398,0.057685133069754,0.049064934253693,-0.126614481210709,0.035106845200062) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.165811240673065,-0.208351850509644,-0.158571004867554,-0.015256435610354,-0.030210152268410,0.214295178651810,-0.072243794798851,0.255099684000015,0.023622207343578,-0.053814843297005,-0.017713833600283,-0.097103863954544,0.018618481233716,-0.071760706603527,-0.038677543401718,0.004120367579162) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.166669130325317,0.100349456071854,0.001291667693295,-0.031414758414030,-0.046817690134048,0.080505780875683,-0.052881155163050,0.105186291038990,0.096226617693901,0.041962977498770,-0.023432439193130,-0.013111299835145,-0.133317545056343,-0.005630472209305,-0.029204288497567,0.023996092379093) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.161636292934418,-0.113082043826580,-0.052126456052065,0.090424150228500,0.023022094741464,-0.107436582446098,-0.075236268341541,0.099169641733170,0.111081913113594,0.027815980836749,-0.013700067065656,0.079475566744804,0.033720090985298,-0.182178094983101,-0.208885282278061,0.144935712218285) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.349654108285904,0.281230211257935,-0.018612826243043,0.156092777848244,-0.085715427994728,-0.056780271232128,-0.217904254794121,0.063099555671215,-0.045816134661436,-0.085547521710396,0.114792898297310,0.345867276191711,0.126787140965462,-0.102164514362812,0.041636329144239,0.065803162753582) * MODEL10_texOff(vec2(0,0));
res += mat4(0.054693013429642,-0.145639926195145,-0.028926737606525,-0.155427411198616,0.178845778107643,0.074253723025322,0.110463187098503,-0.284527897834778,0.097174793481827,0.064316511154175,-0.082065105438232,0.083337254822254,-0.004678270313889,-0.074865892529488,-0.040883738547564,0.182076513767242) * MODEL10_texOff(vec2(0,1));
res += mat4(0.050039179623127,-0.060667805373669,-0.000572143006139,0.068833276629448,-0.010709671303630,-0.011438183486462,-0.031331822276115,0.052208255976439,-0.242968186736107,0.075644597411156,0.015732828527689,-0.014790497720242,0.129733622074127,0.045479703694582,0.067165061831474,-0.239823892712593) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.099193751811981,-0.020637718960643,-0.059576187282801,0.173395842313766,-0.013482355512679,-0.034088607877493,0.025942873209715,-0.082141578197479,-0.416606098413467,-0.156282812356949,-0.185023948550224,-0.240729928016663,0.045921336859465,0.051088940352201,-0.040022321045399,-0.009949508123100) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.054855190217495,-0.014191762544215,-0.038887050002813,0.029814707115293,-0.173217460513115,0.127576127648354,-0.019841248169541,0.042457837611437,-0.041885558515787,0.068575151264668,0.137635678052902,-0.006922860164195,0.211574882268906,-0.067342355847359,0.059175059199333,-0.025382420048118) * MODEL10_texOff(vec2(1,1));
res += mat4(0.004679393954575,-0.039791394025087,-0.015753794461489,-0.213403150439262,0.011730147525668,-0.155486911535263,0.109523609280586,-0.052223756909370,-0.042175032198429,0.012200535275042,0.010032322257757,-0.145638808608055,-0.118607446551323,0.128176495432854,-0.010153097100556,-0.066260851919651) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.178804606199265,-0.138977974653244,0.013177379965782,-0.440753132104874,-0.107493191957474,-0.355643957853317,-0.109944857656956,0.076141402125359,0.091050185263157,0.042023386806250,0.362737566232681,-0.448658257722855,-0.064235456287861,-0.017675189301372,0.131153747439384,-0.000237748696236) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.054150406271219,0.008813290856779,0.105759635567665,0.068853087723255,-0.171008080244064,-0.090851783752441,-0.038793768733740,-0.226151555776596,-0.085286580026150,-0.138690754771233,0.050138499587774,-0.238585963845253,-0.045414038002491,-0.125792965292931,0.039811670780182,0.048100810497999) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.087933540344238,0.111766412854195,0.017360482364893,0.233723506331444,-0.086075797677040,0.102726198732853,-0.184197440743446,-0.043002672493458,-0.085512936115265,0.111074179410934,-0.020338518545032,-0.189686432480812,0.046503778547049,0.124830730259418,0.030785830691457,-0.078696176409721) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.322502672672272,0.009052617475390,-0.132759913802147,0.057943023741245,-0.301483362913132,-0.004378906451166,0.247146740555763,-0.125267773866653,-0.074136704206467,-0.178220808506012,0.057063020765781,0.096004359424114,0.108692005276680,0.137309476733208,-0.026762960478663,-0.264931261539459) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.102170675992966,-0.048815693706274,0.188420027494431,-0.082698367536068,-0.229836642742157,-0.002089217072353,0.160939380526543,0.151610851287842,-0.007620791904628,-0.093517392873764,-0.081836320459843,0.267485916614532,0.073403880000114,-0.114718146622181,-0.021844953298569,0.079077847301960) * MODEL11_texOff(vec2(0,1));
res += mat4(0.104213416576385,0.207734435796738,-0.033765021711588,-0.172713264822960,0.031342279165983,-0.036360904574394,0.019072014838457,-0.023108256980777,-0.075206309556961,-0.045825928449631,0.013105864636600,0.111587770283222,0.067400842905045,0.134271323680878,-0.003081283066422,0.134275063872337) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.266565799713135,0.000412017136114,0.167787775397301,-0.037797853350639,0.063422352075577,0.007985090836883,0.180804550647736,-0.060906287282705,0.107065424323082,-0.150382906198502,-0.020985212177038,-0.021246055141091,-0.304485172033310,0.007597811520100,-0.243344992399216,0.205622300505638) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.068826705217361,-0.113552279770374,0.009033717215061,0.092573747038841,0.118134580552578,0.083623021841049,0.035820368677378,-0.069808781147003,0.189848065376282,-0.157449215650558,-0.064510338008404,0.061430096626282,-0.089406028389931,-0.172812744975090,-0.183868929743767,-0.066969215869904) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.176828250288963,-0.018537672236562,0.070134744048119,-0.071037173271179,-0.219047576189041,-0.214802399277687,-0.114756062626839,-0.306988030672073,-0.063653498888016,-0.047283984720707,-0.062215257436037,-0.041652988642454,0.075731888413429,-0.096728049218655,-0.093075536191463,-0.205531924962997) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.041673287749290,-0.053526934236288,0.036954201757908,-0.455654352903366,0.010708499699831,-0.138006746768951,0.034928549081087,0.108186691999435,-0.076295994222164,-0.051941845566034,-0.040374469012022,-0.193294376134872,-0.033001668751240,0.237148240208626,0.354816555976868,-0.269473850727081) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.164608046412468,-0.115833021700382,-0.047699511051178,-0.218903958797455,-0.015900006517768,-0.049438063055277,-0.022878857329488,0.033833462744951,-0.278550714254379,-0.071941606700420,0.045753721147776,-0.213729992508888,-0.111554086208344,-0.051380328834057,0.085375532507896,-0.021841326728463) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.017548859119415,-0.031659983098507,0.069941163063049,-0.031929969787598,0.275708258152008,-0.198148235678673,0.066405586898327,0.221577286720276,-0.013266284018755,0.261035591363907,-0.053762435913086,0.068340346217155,-0.090761587023735,0.175663411617279,-0.230837449431419,0.015717111527920) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.157504245638847,-0.049142040312290,-0.027964500710368,-0.063347712159157,0.077782705426216,-0.124282144010067,0.028351893648505,0.104000478982925,0.080389231443405,-0.298639833927155,0.254928201436996,0.136098578572273,-0.638849616050720,-0.234684869647026,-0.128172561526299,0.316287785768509) * MODEL12_texOff(vec2(0,0));
res += mat4(0.142839625477791,0.108280897140503,-0.008023446425796,0.015504169277847,-0.002644072985277,0.045017804950476,-0.030218914151192,0.072548016905785,0.132350474596024,0.147491306066513,0.074265576899052,0.071887098252773,0.066760607063770,-0.066605016589165,-0.022922694683075,0.151761263608932) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.046214975416660,0.093532465398312,-0.063852891325951,0.004081211518496,-0.085533656179905,0.198157370090485,0.019131559878588,-0.313169658184052,-0.063106171786785,0.140532061457634,0.072305649518967,0.012888955883682,-0.041304975748062,0.039303399622440,0.043020065873861,0.031961366534233) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.022185793146491,-0.166414812207222,-0.063181035220623,-0.050392985343933,0.033065248280764,-0.009383655153215,0.100586615502834,-0.088428534567356,0.079880364239216,-0.014699564315379,0.042679537087679,-0.234697446227074,0.241211071610451,-0.101203843951225,0.290034264326096,-0.307542204856873) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.009926661849022,0.082888841629028,0.002246882766485,-0.082600310444832,0.017087647691369,-0.010447746142745,0.024738145992160,0.045286558568478,0.109749868512154,0.009376646019518,0.025265729054809,0.061127196997404,0.375442355871201,-0.025185849517584,0.170138284564018,-0.044817265123129) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.086006402969360,0.036741599440575,0.838693141937256,0.051821477711201) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.117613293230534,-0.111590445041656,0.038205210119486,-0.155357286334038);
res += mat4(-0.147275879979134,0.021198121830821,-0.032417681068182,0.009863700717688,-0.044230263680220,0.022000031545758,-0.138584464788437,-0.072028741240501,-0.112495362758636,-0.088509052991867,-0.076502740383148,-0.021733932197094,-0.013917544856668,0.196980327367783,0.078107684850693,0.069685839116573) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.119367897510529,0.062256742268801,0.225724846124649,-0.043186835944653,0.147559285163879,0.104946903884411,-0.120859116315842,0.054005224257708,-0.177666455507278,0.090884260833263,0.202707901597023,0.003444734029472,0.118530265986919,-0.146234989166260,-0.054452352225780,-0.030215678736567) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.005060552153736,0.086755312979221,0.306849151849747,0.141016840934753,-0.134518668055534,0.216028735041618,-0.009889425709844,-0.092715039849281,-0.067731656134129,0.181242942810059,0.014484602026641,0.160384476184845,-0.100395411252975,0.001986075891182,0.017595291137695,0.012068195268512) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.081385761499405,-0.229380577802658,0.139974981546402,0.152501836419106,-0.145593345165253,-0.070038765668869,-0.016018481925130,-0.117631010711193,-0.101196870207787,-0.187900871038437,0.172079220414162,-0.088033676147461,0.034139450639486,0.163178756833076,-0.047319334000349,-0.242194160819054) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.036002978682518,0.164705246686935,0.141172930598259,0.088995732367039,-0.032199855893850,-0.054735843092203,0.253479212522507,-0.254402279853821,-0.177773833274841,-0.255570232868195,-0.417111814022064,-0.338193237781525,0.116444267332554,0.046023618429899,0.014904813840985,0.056896716356277) * MODEL7_texOff(vec2(0,0));
res += mat4(0.016712576150894,0.039947085082531,0.123689778149128,0.099873803555965,-0.012525431811810,0.035400275141001,-0.004387624096125,0.124320678412914,0.082834057509899,0.201191186904907,-0.164913401007652,0.122788354754448,-0.139055714011192,0.032971672713757,0.078937672078609,-0.071565330028534) * MODEL7_texOff(vec2(0,1));
res += mat4(0.053466882556677,-0.050805129110813,0.228511661291122,-0.033104699105024,0.031684301793575,-0.104684479534626,0.030558414757252,-0.007231703493744,0.160237103700638,-0.145888060331345,0.141929551959038,0.120802663266659,0.111266545951366,0.136868819594383,0.011518682353199,0.281281977891922) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.032427191734314,0.088212825357914,0.110386945307255,0.101463474333286,0.060536891222000,0.193857118487358,0.046031393110752,0.027579724788666,-0.044512394815683,-0.005756633821875,-0.095086865127087,0.301155000925064,-0.107166476547718,0.059562541544437,0.048405405133963,0.021730724722147) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.069417461752892,0.097358465194702,-0.015297346748412,0.176663830876350,0.077364929020405,0.110961757600307,0.000063005572883,-0.169220924377441,0.078142896294594,0.072784990072250,-0.084506288170815,-0.024603413417935,-0.076684437692165,0.033042661845684,0.038268171250820,0.198192805051804) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.035015348345041,-0.004935457371175,-0.091996155679226,0.082749187946320,-0.161306589841843,0.079263046383858,0.087007984519005,0.173190951347351,-0.108583554625511,-0.048439204692841,0.121856033802032,-0.087175041437149,0.169423326849937,-0.184040233492851,0.125539451837540,-0.042027462273836) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.321591407060623,0.102195501327515,0.023636398836970,-0.095242850482464,-0.019180303439498,-0.029135027900338,-0.002329998649657,-0.090113542973995,0.146971985697746,0.162441506981850,0.033523328602314,0.068210810422897,0.054206818342209,0.188182801008224,0.090060040354729,0.255411744117737) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.153708830475807,-0.040691014379263,0.059798680245876,-0.094470091164112,-0.038315590471029,0.080016992986202,0.006273318547755,0.007940216921270,-0.239449366927147,0.042482845485210,0.037271339446306,-0.063376836478710,-0.030486561357975,0.215775489807129,0.047202538698912,0.185681357979774) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.215145975351334,-0.487667977809906,0.149619147181511,-0.212166160345078,-0.066372126340866,0.048098113387823,-0.196918085217476,-0.288045704364777,-0.008012151345611,-0.007842601276934,-0.019454101100564,0.024133836850524,0.149397194385529,0.267758935689926,-0.066618420183659,0.188180446624756) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.358985871076584,0.249271765351295,0.084689609706402,0.228913620114326,0.016504412516952,-0.400172472000122,0.086521312594414,-0.266330003738403,0.178668826818466,-0.257986903190613,0.061901777982712,-0.115148641169071,0.008886276744306,-0.000828575866763,0.120364382863045,0.067878164350986) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.129076957702637,0.072660528123379,-0.249871015548706,-0.110451519489288,0.033822778612375,-0.010228318162262,-0.035572569817305,-0.008210017345846,0.084143988788128,0.189544349908829,-0.240146696567535,0.217279762029648,0.059850450605154,0.088669173419476,-0.118834473192692,0.168089434504509) * MODEL8_texOff(vec2(0,1));
res += mat4(0.037213034927845,-0.066733390092850,0.176232978701591,0.108668692409992,0.039488129317760,0.031630098819733,0.100031130015850,0.062574274837971,-0.138785138726234,0.170852616429329,-0.169885337352753,0.031666662544012,-0.055049441754818,0.166957855224609,-0.055504400283098,0.094746194779873) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.054330684244633,0.094746097922325,-0.295010447502136,-0.071320027112961,-0.106339342892170,0.130777373909950,-0.091297835111618,0.090610958635807,0.108946293592453,0.064411900937557,-0.053798638284206,-0.100042574107647,-0.086128257215023,-0.000904315675143,-0.066206187009811,0.018682187423110) * MODEL8_texOff(vec2(1,0));
res += mat4(0.038116514682770,-0.088051162660122,-0.055321101099253,-0.109158754348755,0.016849152743816,0.032123818993568,0.044452406466007,-0.079623162746429,0.067122936248779,0.033834688365459,-0.195771306753159,-0.036081962287426,-0.035933494567871,-0.117515735328197,0.102926492691040,-0.037859275937080) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.179958105087280,0.071419678628445,-0.010594834573567,0.008913701400161,0.068839631974697,-0.216044738888741,-0.035985756665468,0.173064261674881,-0.100547611713409,-0.138411581516266,0.042464915663004,-0.065575987100601,-0.293871104717255,-0.196802631020546,0.081749975681305,-0.030899181962013) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.049413200467825,0.061030339449644,0.045369189232588,-0.089421235024929,-0.026376610621810,0.104861117899418,-0.136273756623268,0.057275321334600,0.039079811424017,0.207802429795265,-0.080929763615131,0.383080631494522,-0.018954772502184,-0.051483094692230,-0.050082650035620,0.189537853002548) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.231420040130615,-0.099324390292168,0.037860315293074,-0.116645216941833,-0.047158610075712,-0.167337164282799,0.058881863951683,-0.007756303995848,0.114335253834724,-0.104048997163773,-0.189560517668724,-0.022726202383637,0.061808120459318,-0.152643933892250,-0.082060486078262,0.052913852035999) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.251354426145554,-0.148757785558701,0.134769976139069,-0.057064283639193,0.193325579166412,-0.006697115488350,-0.005554657429457,-0.068469524383545,-0.182186812162399,0.027818320319057,0.016347177326679,-0.149344816803932,-0.186131432652473,-0.288671046495438,-0.451780110597610,0.132167547941208) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.038914702832699,-0.468015819787979,-0.140965789556503,-0.410878211259842,0.021897483617067,-0.068455368280411,0.272257268428802,-0.017966186627746,-0.070033937692642,0.096809178590775,-0.219093307852745,-0.099524766206741,-0.115139894187450,0.207372054457664,-0.040187623351812,-0.006722785998136) * MODEL9_texOff(vec2(0,0));
res += mat4(0.104489170014858,-0.141148626804352,0.074094437062740,-0.087303169071674,-0.103532873094082,0.171174615621567,-0.023618686944246,0.070435643196106,0.145486235618591,-0.253737866878510,0.220057010650635,-0.218625918030739,-0.175029978156090,-0.460023224353790,-0.296245604753494,-0.280969828367233) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.138379260897636,-0.090693853795528,0.125406965613365,0.019815018400550,-0.007261297665536,-0.084178902208805,-0.032683458179235,0.038971200585365,0.068909756839275,0.027171049267054,-0.121465727686882,-0.170255377888680,-0.111985616385937,-0.168768301606178,-0.113716475665569,-0.069287374615669) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.020772363990545,-0.157970204949379,-0.187906324863434,0.054590310901403,-0.082108870148659,0.097724191844463,0.016477132216096,0.125036269426346,0.106584236025810,-0.147931247949600,-0.244075939059258,0.002520520472899,0.149211823940277,-0.022579522803426,0.007582410704345,0.028804650530219) * MODEL9_texOff(vec2(1,0));
res += mat4(0.055980458855629,0.010843364521861,-0.004352127667516,0.063081674277782,0.062660351395607,-0.024366291239858,0.012177540920675,-0.027574315667152,0.020884884521365,-0.383896142244339,-0.023727217689157,-0.005553222261369,0.095100864768028,-0.126069411635399,-0.055814243853092,0.173885658383369) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.254356324672699,0.062568061053753,-0.318108260631561,-0.216290578246117,-0.089308664202690,-0.127853199839592,0.107852578163147,-0.107309021055698,0.009135651402175,0.155495211482048,0.011450943537056,-0.018382839858532,-0.113794431090355,0.000898182101082,-0.030854616314173,-0.257554262876511) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.017031231895089,-0.275556355714798,-0.249196365475655,-0.357663750648499,0.062949754297733,0.018319338560104,0.084231980144978,0.100853011012077,-0.157119855284691,-0.137345761060715,-0.052798360586166,-0.092321559786797,0.271449744701385,-0.041275467723608,0.020929845049977,-0.206173077225685) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.048849195241928,-0.188760951161385,0.039327945560217,-0.075418047606945,0.183890640735626,-0.125501647591591,-0.067456074059010,-0.077290579676628,-0.016657968983054,0.024888793006539,0.092636361718178,0.042306609451771,-0.127787783741951,0.059975761920214,-0.099707499146461,-0.019716482609510) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.037476815283298,-0.168041303753853,-0.239464566111565,-0.133943364024162,0.343715131282806,0.206986233592033,-0.053537886589766,0.098069801926613,0.099528104066849,0.073569796979427,-0.033874303102493,0.098797753453255,-0.107040360569954,0.147502169013023,0.102357298135757,0.094336532056332) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.040973123162985,-0.211687475442886,-0.156774193048477,-0.009297330863774,0.048230834305286,0.183176949620247,-0.125264346599579,0.079150974750519,-0.126102253794670,-0.148934215307236,-0.092177473008633,-0.047484640032053,0.090657711029053,0.282476603984833,0.274822562932968,0.166772708296776) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.104634031653404,-0.067035086452961,-0.002393105300143,0.014646769501269,-0.002690424909815,-0.495161414146423,0.294095337390900,-0.034640900790691,0.143788099288940,0.193875342607498,-0.053141620010138,0.034451883286238,-0.081029854714870,0.122698076069355,-0.161096766591072,0.060315050184727) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.017742969095707,0.027392966672778,0.031099509447813,0.041802585124969,0.002693768125027,0.118897117674351,-0.259697318077087,-0.049681581556797,-0.282674670219421,-0.106591142714024,0.009788366034627,0.212490037083626,0.167358428239822,0.200761660933495,0.160169005393982,0.004046791233122) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.069589763879776,-0.007302305195481,-0.055961493402719,0.004742925055325,-0.047387994825840,-0.025713333860040,0.025716589763761,-0.175389036536217,-0.035452805459499,0.148442178964615,-0.003449316136539,0.077794045209885,0.016103597357869,0.156830474734306,0.060815375298262,0.121803723275661) * MODEL10_texOff(vec2(1,0));
res += mat4(0.001987690804526,-0.107438616454601,-0.099225834012032,-0.041427996009588,-0.045285653322935,0.026183430105448,0.068976365029812,0.238306686282158,0.073104076087475,-0.163901284337044,-0.009245908819139,-0.082406833767891,-0.086449086666107,0.014723883941770,-0.204412326216698,-0.017231084406376) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.112067908048630,0.047881063073874,0.196653708815575,0.063174583017826,-0.257687479257584,-0.045793667435646,-0.075931951403618,-0.041950695216656,0.178497061133385,-0.131576299667358,-0.035654857754707,0.078395031392574,-0.424869209527969,-0.158253893256187,0.062360737472773,-0.304510533809662) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.322196930646896,0.252409666776657,-0.043011344969273,0.325377136468887,0.249410539865494,0.183917298913002,0.200792118906975,0.026793878525496,0.157983422279358,0.138114467263222,0.051462970674038,0.048723917454481,0.176334008574486,-0.175872758030891,0.104417942464352,0.129174038767815) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.056580863893032,-0.108480341732502,-0.149770796298981,0.027062540873885,-0.165872365236282,0.083073988556862,0.090117730200291,0.070900060236454,-0.085651971399784,0.184158936142921,-0.011268065311015,-0.050166472792625,0.058929670602083,0.212862163782120,-0.074551947414875,0.047934025526047) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.170859456062317,0.186707124114037,-0.017518028616905,0.122257433831692,-0.234335780143738,-0.098388008773327,0.070487268269062,-0.037605818361044,-0.198686435818672,0.028656713664532,0.001681447261944,-0.020590482279658,-0.000322886917274,-0.164177626371384,0.127068072557449,-0.023622717708349) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.370410770177841,-0.433566689491272,-0.318334430456161,-0.305020868778229,-0.001114979968406,0.046316664665937,0.110710963606834,-0.000870107440278,-0.042739637196064,-0.171324014663696,0.004838733933866,-0.184233352541924,-0.003721593180671,-0.164547488093376,-0.069178305566311,0.039150170981884) * MODEL11_texOff(vec2(0,0));
res += mat4(0.053931988775730,-0.226070389151573,0.370262622833252,-0.075820840895176,0.059825610369444,-0.061554595828056,-0.202144369482994,-0.060020536184311,-0.004241646733135,0.301591753959656,-0.078621864318848,0.050696432590485,-0.292877495288849,0.111762173473835,-0.191749647259712,0.080986849963665) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.044632963836193,0.252904772758484,-0.082275532186031,-0.295248568058014,-0.018149556592107,0.089609250426292,-0.059192858636379,-0.093106649816036,-0.191627696156502,-0.140562549233437,-0.040656350553036,0.043529495596886,0.092898346483707,0.088929072022438,-0.002457837108523,0.015424402430654) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.064464040100574,-0.129743441939354,0.118879646062851,0.028057998046279,0.051655959337950,-0.086880795657635,0.120684489607811,-0.073374085128307,0.128249973058701,-0.202537789940834,0.090229131281376,0.014907989650965,-0.056664105504751,0.024553967639804,-0.330157011747360,0.137884512543678) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.041026052087545,0.025155819952488,0.064113475382328,0.199642583727837,0.000325100030750,-0.026283068582416,0.046929635107517,-0.040966141968966,-0.199443385004997,-0.118976399302483,-0.112707898020744,-0.072605974972248,-0.038770910352468,0.112948261201382,-0.100720576941967,-0.124614067375660) * MODEL11_texOff(vec2(1,1));
res += mat4(0.091256953775883,0.073586642742157,0.140908226370811,0.036964982748032,-0.127226531505585,-0.011966707184911,-0.028052199631929,0.192359477281570,0.319256067276001,0.010445991531014,0.091879814863205,-0.057687893509865,0.130152896046638,0.052210822701454,0.103984221816063,0.019503038376570) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.104254223406315,0.102524787187576,0.054343048483133,-0.164210632443428,0.174144193530083,0.023583505302668,-0.031969200819731,0.067480236291885,-0.284008264541626,0.015224039554596,-0.035876557230949,0.039329506456852,-0.046882770955563,0.061516180634499,-0.026651285588741,0.311123400926590) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.031200461089611,-0.328382253646851,-0.070286042988300,-0.296705245971680,0.111056312918663,0.107875674962997,0.069269113242626,-0.050035677850246,-0.053514361381531,-0.069010086357594,-0.188753113150597,-0.046368509531021,-0.093344137072563,-0.050033792853355,-0.079044170677662,0.016625488176942) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.182018429040909,-0.109258070588112,0.250112533569336,-0.159174740314484,-0.032189209014177,-0.603959560394287,-0.394681751728058,-0.695259511470795,0.159768134355545,0.058938421308994,-0.244723767042160,0.188036546111107,0.062026340514421,0.233565732836723,-0.084781013429165,0.109955362975597) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.009053192101419,0.323869824409485,-0.227064341306686,-0.078084453940392,0.043412152677774,-0.148861274123192,0.078345507383347,-0.130928039550781,0.015170607715845,0.058006864041090,0.191634073853493,0.080514512956142,-0.073814205825329,0.215593293309212,-0.180738925933838,0.218647614121437) * MODEL12_texOff(vec2(0,0));
res += mat4(0.053083967417479,-0.193752378225327,0.134284555912018,-0.013526208698750,0.090283431112766,0.094027146697044,0.035360224545002,-0.093076750636101,-0.145639404654503,-0.242069154977798,0.116654999554157,-0.131865888834000,0.104943282902241,-0.312639892101288,-0.109927915036678,-0.038123570382595) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.106637895107269,0.158576071262360,0.063489697873592,-0.086285799741745,-0.176144838333130,-0.275576233863831,0.036203753203154,-0.152931198477745,-0.073838748037815,0.028664119541645,-0.166920781135559,-0.121314853429794,-0.054442372173071,0.173225671052933,-0.252913832664490,0.013874502852559) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.041522022336721,0.083759017288685,0.055069055408239,-0.104790419340134,0.224315658211708,0.053280130028725,0.064962364733219,-0.130495861172676,-0.135105013847351,-0.341035515069962,0.014027087017894,-0.326072752475739,0.050844784826040,-0.116299130022526,-0.008229313418269,-0.330356299877167) * MODEL12_texOff(vec2(1,0));
res += mat4(0.016623659059405,0.203051358461380,0.091749981045723,0.039867673069239,0.052773926407099,0.154142677783966,0.031891979277134,-0.006574012804776,0.028887176886201,-0.006580781191587,0.115614578127861,0.040804818272591,0.143996641039848,0.037871669977903,0.139524996280670,-0.120562031865120) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.073684871196747,0.003880030475557,-0.067475803196430,-0.105965994298458) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(-0.040614295750856,0.076558649539948,0.135518074035645,-0.189133778214455);
res += mat4(-0.153165921568871,0.102727442979813,-0.027424905449152,0.078056231141090,-0.049919459968805,-0.125574186444283,0.118725597858429,0.085218086838722,-0.044652778655291,0.170201212167740,0.026448141783476,-0.108088187873363,0.003875688184053,0.040734365582466,-0.164213910698891,-0.119523204863071) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.368050873279572,-0.131367385387421,0.031966466456652,0.041210167109966,-0.031836844980717,0.040864586830139,0.088831372559071,-0.158768489956856,0.083918035030365,-0.027023904025555,0.192564889788628,-0.227101594209671,0.006548454053700,-0.160624489188194,-0.097413524985313,0.060282055288553) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.208202853798866,0.137035399675369,-0.090494535863400,0.119957707822323,0.186463564634323,0.182841807603836,-0.029933398589492,0.093782514333725,-0.034814946353436,0.188510224223137,-0.124486662447453,-0.004535720683634,0.144719347357750,-0.026727266609669,-0.105472236871719,0.041340611875057) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.281886488199234,0.186718553304672,-0.179946288466454,0.272052228450775,0.012832045555115,0.247226208448410,-0.044446740299463,0.066554032266140,-0.075688414275646,0.023360863327980,-0.072269059717655,0.000651254202239,0.218768969178200,0.271500229835510,-0.021413605660200,-0.174813598394394) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.191968396306038,-0.279856175184250,-0.010035650804639,-0.129145756363869,0.211740598082542,-0.331899970769882,0.001802249578759,0.086435213685036,-0.301618993282318,-0.188892617821693,-0.309544295072556,-0.309488803148270,0.249812081456184,-0.078069858253002,-0.312826961278915,0.012537211179733) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.211047530174255,0.023255161941051,0.039258159697056,0.031450789421797,-0.109879657626152,0.075489781796932,0.016744259744883,0.083412572741508,0.253552645444870,-0.070883028209209,-0.059340555220842,-0.013493714854121,0.109682574868202,0.144096925854683,-0.043057605624199,0.164702326059341) * MODEL7_texOff(vec2(0,1));
res += mat4(0.104219675064087,-0.033866629004478,-0.009592578746378,-0.089783623814583,-0.018274191766977,-0.022637983784080,0.018293615430593,-0.071828886866570,-0.018358390778303,-0.009448642842472,0.111697696149349,0.010703475214541,-0.044220894575119,0.213161930441856,0.127811506390572,-0.020535957068205) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.139376223087311,-0.054003227502108,-0.021352887153625,0.020580487325788,-0.192537799477577,-0.027391878888011,0.172437891364098,-0.044449396431446,-0.018574355170131,0.167834103107452,0.011075704358518,0.063345730304718,-0.012680903077126,-0.030222246423364,0.070815332233906,-0.029860896989703) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.019798869267106,0.041929215192795,0.060309801250696,0.134704068303108,-0.002462686737999,0.169735029339790,0.085029065608978,0.115433998405933,-0.018648464232683,-0.179076954722404,0.080321058630943,-0.040498360991478,0.035067308694124,-0.045575872063637,0.085227482020855,-0.048227671533823) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.190191477537155,0.212958812713623,-0.003249347675592,0.004011160228401,-0.093179792165756,-0.045182622969151,0.013550664298236,0.142584681510925,0.214473590254784,-0.132842227816582,0.126291587948799,0.122118785977364,0.062510743737221,-0.098299391567707,-0.213973253965378,-0.008705978281796) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.228152602910995,-0.264833390712738,0.011125856079161,-0.208505079150200,-0.027901884168386,0.072132296860218,0.013665386475623,-0.052631322294474,-0.022829331457615,0.204170495271683,-0.251908779144287,-0.151075318455696,-0.252313166856766,0.132066994905472,-0.512570500373840,-0.056553546339273) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.077313132584095,0.002242797054350,0.042211413383484,0.037060312926769,0.037039939314127,0.037639167159796,0.069564007222652,0.063572622835636,-0.115740865468979,0.176892593502998,0.045300215482712,0.053789339959621,-0.062615513801575,-0.187895506620407,-0.081790670752525,0.008669634349644) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.245121732354164,-0.126461431384087,-0.050840090960264,0.429265022277832,-0.195886671543121,-0.093893080949783,-0.195666208863258,0.187208786606789,0.004610274452716,-0.071009255945683,-0.017246555536985,-0.115859195590019,0.011949926614761,-0.022914251312613,-0.045486763119698,-0.402421116828918) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.288892835378647,0.029522441327572,0.065546646714211,-0.862116694450378,-0.262448608875275,0.110078155994415,0.088386259973049,-0.066150665283203,-0.218780919909477,-0.075153619050980,0.046519078314304,0.350516170263290,0.151499629020691,0.086265981197357,0.238208979368210,0.149334430694580) * MODEL8_texOff(vec2(0,0));
res += mat4(0.198211014270782,0.110323242843151,-0.033320501446724,0.133466199040413,0.074216485023499,-0.014243132434785,0.033612221479416,-0.072682827711105,0.148676335811615,0.079179622232914,0.014242021366954,-0.314037173986435,0.018864322453737,-0.292089045047760,0.006384759675711,0.089798726141453) * MODEL8_texOff(vec2(0,1));
res += mat4(0.095578417181969,-0.325428962707520,-0.015201276168227,0.063508138060570,0.125333353877068,-0.064302794635296,-0.161296159029007,-0.051842592656612,-0.163259103894234,0.057319141924381,-0.070468321442604,0.058812811970711,-0.153587624430656,0.285194039344788,0.065479390323162,0.042693890631199) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.370736122131348,0.147083297371864,-0.009738481603563,0.139540627598763,-0.166011676192284,0.011725348420441,-0.238847613334656,-0.034726794809103,-0.070388115942478,-0.057635292410851,-0.208715528249741,-0.059392262250185,-0.130678385496140,0.088980905711651,-0.026826681569219,0.034008279442787) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.142763152718544,-0.189352914690971,-0.129869475960732,-0.059996832162142,-0.134102165699005,0.055094551295042,-0.106947690248489,-0.165042445063591,-0.065785042941570,-0.045124795287848,-0.058129262179136,0.141392588615417,-0.071686774492264,-0.125441268086433,0.013940852135420,-0.066423825919628) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.018262904137373,0.137263432145119,-0.047209918498993,-0.090414814651012,-0.192057833075523,-0.144603580236435,-0.471426576375961,-0.006631672382355,0.003495781915262,0.128023266792297,-0.098164200782776,0.047264795750380,-0.114911682903767,0.026106758043170,0.202952250838280,0.359599560499191) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.223540619015694,-0.047787573188543,0.160919666290283,0.069990590214729,0.238431617617607,-0.376796543598175,-0.869272768497467,-0.216233402490616,-0.208070412278175,0.044721566140652,-0.294124305248260,-0.114051707088947,-0.040685135871172,-0.054440040141344,0.110332638025284,0.040424160659313) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.065981924533844,-0.058899577707052,0.228198975324631,0.061720803380013,-0.039481617510319,-0.214521810412407,-0.090748474001884,0.026083858683705,0.201515719294548,-0.164957672357559,-0.131516963243484,-0.022226877510548,0.060992065817118,-0.071644634008408,0.095660716295242,0.036990318447351) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.008756567724049,0.003858182113618,-0.017460161820054,0.081776626408100,-0.145162001252174,0.090334884822369,0.084265150129795,-0.232923269271851,0.105020985007286,0.068639367818832,0.094706706702709,0.150999143719673,-0.276293337345123,-0.138793021440506,-0.007686459925026,0.445526838302612) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.142069950699806,-0.078690052032471,-0.073878429830074,-0.045997720211744,0.096132107079029,-0.295946151018143,0.159132570028305,0.143311396241188,-0.017767369747162,0.012872572988272,0.234305113554001,0.006314602214843,-0.051871582865715,-0.242361053824425,-0.062977693974972,-0.000014484973690) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.094561815261841,-0.017802430316806,-0.117701262235641,0.226737603545189,0.032375261187553,0.171111568808556,0.094902694225311,0.012043748050928,-0.250790208578110,-0.177089422941208,0.103102080523968,-0.060723278671503,-0.118530787527561,-0.006627585273236,0.066925451159477,0.273799717426300) * MODEL9_texOff(vec2(0,1));
res += mat4(0.020415203645825,-0.121264979243279,0.089469060301781,0.064753122627735,0.108129821717739,-0.039408609271049,0.032089617103338,0.132620275020599,0.070676445960999,-0.035103432834148,0.002699091332033,0.233818650245667,0.198403492569923,-0.147324815392494,0.008874144405127,0.236308246850967) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.154366970062256,0.020375175401568,-0.095114633440971,-0.015653870999813,-0.085297010838985,0.085745811462402,0.079186543822289,0.213410213589668,0.133654564619064,-0.107462301850319,0.096463441848755,0.151577845215797,0.160576000809669,-0.042623437941074,-0.037885293364525,0.039293915033340) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.063250608742237,-0.039119411259890,-0.164693400263786,-0.046977847814560,-0.076004795730114,0.041400659829378,0.073386780917645,0.038969650864601,0.048040445894003,-0.178815811872482,0.169041126966476,0.100035965442657,-0.136697515845299,0.095526389777660,-0.034796047955751,0.004710623528808) * MODEL9_texOff(vec2(1,1));
res += mat4(0.058562673628330,-0.118232198059559,0.056777548044920,-0.099593214690685,0.056238926947117,0.075914978981018,0.134239733219147,0.015092823654413,0.114774003624916,0.136758640408516,0.020593011751771,-0.056853763759136,0.019992584362626,0.108405530452728,0.031788855791092,0.094361677765846) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.324741840362549,-0.006412492599338,0.288921326398849,0.287349998950958,-0.190553203225136,-0.055721979588270,-0.093414947390556,-0.135161519050598,0.236687034368515,-0.013709273189306,-0.003291359404102,-0.012558749876916,0.140436962246895,-0.146953552961349,-0.154837667942047,0.051948916167021) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.194379433989525,-0.044178269803524,-0.072474852204323,-0.109099999070168,-0.068418264389038,-0.121591173112392,0.094597242772579,-0.140169650316238,-0.035081222653389,-0.031920209527016,-0.036944907158613,-0.085454486310482,0.137100994586945,-0.046119183301926,-0.073994979262352,0.043671071529388) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.033521804958582,0.160283640027046,0.011408735066652,0.047945726662874,0.132779076695442,0.033702649176121,-0.098703108727932,-0.120609417557716,-0.051684655249119,0.024150576442480,-0.307977885007858,0.057537149637938,-0.119764633476734,-0.018894385546446,-0.110021755099297,-0.082985080778599) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.110610403120518,-0.168371364474297,-0.110367581248283,0.080857113003731,0.305625140666962,0.029259605333209,0.115695618093014,0.225266069173813,-0.009421376511455,-0.082163386046886,-0.775754868984222,0.045457843691111,-0.010910333134234,-0.216497719287872,-0.130447730422020,-0.241207525134087) * MODEL10_texOff(vec2(0,0));
res += mat4(0.010006281547248,0.045864872634411,-0.019740974530578,0.002969930879772,-0.125712305307388,-0.003233767580241,-0.103517897427082,-0.128386929631233,-0.019815349951386,-0.160643741488457,0.009036077186465,-0.006270536687225,0.061246700584888,-0.038728348910809,0.052363649010658,0.012160246260464) * MODEL10_texOff(vec2(0,1));
res += mat4(0.085627168416977,-0.071462504565716,0.030773520469666,-0.013693388551474,-0.229994550347328,0.105854876339436,0.102116219699383,-0.105578638613224,-0.010597447864711,-0.306180387735367,-0.094560466706753,0.061088990420103,0.170379951596260,-0.134296312928200,-0.043823607265949,-0.273905754089355) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.018694734200835,-0.045652538537979,0.035280182957649,0.141429379582405,0.208071365952492,-0.219228535890579,0.021023819223046,-0.096821740269661,0.003313313471153,0.088713467121124,-0.092219181358814,-0.154340505599976,0.062569238245487,-0.062800243496895,0.090467311441898,0.023267732933164) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.102716021239758,0.079931922256947,0.011712951585650,0.041578058153391,-0.104424543678761,0.130233600735664,-0.010952992364764,-0.092981390655041,-0.110404461622238,-0.316440135240555,0.003517203032970,-0.032288234680891,0.022260429337621,-0.171349868178368,0.075931131839752,-0.001253694994375) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.045605950057507,0.063105396926403,0.039779566228390,0.064190961420536,-0.002133353613317,0.167710974812508,0.213927507400513,-0.035644836723804,0.062342781573534,-0.153322592377663,0.141170695424080,0.027285521849990,0.303011238574982,0.146829545497894,0.008776662871242,0.433447659015656) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.334726929664612,0.224927470088005,-0.534062027931213,0.085797384381294,0.026901045814157,-0.112498477101326,0.045026138424873,0.137957736849785,-0.063983105123043,-0.121677927672863,-0.138519838452339,-0.124375589191914,-0.177793085575104,-0.405815571546555,-0.111991204321384,-0.228176772594452) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.045365814119577,-0.220741182565689,-0.167786926031113,-0.078137747943401,-0.032749943435192,-0.015410745516419,0.076901622116566,0.089295171201229,-0.011794747784734,0.329153209924698,0.090169012546539,0.020773828029633,-0.025191981345415,0.062018312513828,-0.094907820224762,-0.121705867350101) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.170723319053650,-0.139607429504395,-0.036263331770897,0.089939750730991,0.061658009886742,0.067741066217422,0.199042484164238,0.023569382727146,0.087455436587334,-0.043856002390385,0.037588533014059,-0.144732624292374,0.150062218308449,0.063950240612030,0.012134384363890,0.150490999221802) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.259359687566757,0.153002753853798,0.036453992128372,0.476451575756073,-0.079996384680271,0.104783974587917,0.069919444620609,-0.032124321907759,-0.038667179644108,-0.017577745020390,0.259569287300110,0.319842725992203,0.371576547622681,-0.347648948431015,0.144564270973206,0.057282194495201) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.231658786535263,0.000323238695273,-0.106969811022282,-0.316212832927704,0.179834365844727,-0.103412047028542,-0.046161629259586,0.138638675212860,0.064098708331585,0.263773292303085,0.246770814061165,0.200262412428856,0.357847362756729,0.131984889507294,-0.038925312459469,-0.036043040454388) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.163016557693481,0.031309980899096,-0.019019490107894,0.075771242380142,-0.102763883769512,0.025478478521109,0.025415197014809,-0.074636034667492,-0.077469840645790,-0.133917093276978,-0.013562005013227,-0.005929830949754,0.085167616605759,-0.011056039482355,0.063955932855606,-0.009349861182272) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.253600627183914,-0.235622987151146,-0.060065887868404,0.012510268017650,0.201396137475967,-0.137420147657394,0.044478151947260,-0.185606628656387,0.025735285133123,-0.184230372309685,0.154710426926613,0.091160856187344,-0.119774930179119,0.177938640117645,-0.133937165141106,0.150911271572113) * MODEL11_texOff(vec2(1,0));
res += mat4(0.007661604788154,0.174130484461784,0.088889993727207,0.045413043349981,0.087712511420250,-0.013830192387104,0.015519111417234,-0.105858184397221,-0.000472295505460,-0.067224308848381,0.064639076590538,0.073157407343388,-0.015302741900086,-0.124365404248238,-0.169369280338287,0.000555323786102) * MODEL11_texOff(vec2(1,1));
res += mat4(0.087150789797306,-0.036468587815762,0.297810405492783,0.147417098283768,-0.055634010583162,-0.139197349548340,0.271756798028946,0.274712115526199,0.060646023601294,-0.293692499399185,0.090590082108974,0.072125777602196,0.233797460794449,-0.097576141357422,0.044417753815651,-0.081543624401093) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.119159191846848,0.094153463840485,0.286809623241425,0.093540988862514,-0.102068044245243,0.213681697845459,0.318191140890121,-0.158082023262978,-0.245261132717133,0.159160196781158,0.165097832679749,0.132256016135216,-0.288594812154770,0.228578209877014,-0.470532089471817,-0.027432808652520) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.009788507595658,-0.105483762919903,0.451532393693924,0.084399059414864,0.027735233306885,0.109715156257153,0.171241104602814,-0.007738563697785,-0.013361928984523,0.032503463327885,0.231478318572044,0.029326904565096,-0.004547740332782,-0.155900970101357,0.011797009967268,0.094641819596291) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.009030221961439,-0.141410112380981,0.087649598717690,0.184465274214745,-0.121776401996613,0.133667349815369,0.124094083905220,0.557047367095947,0.314437925815582,-0.021202852949500,-0.013829532079399,-0.052117034792900,0.374027788639069,-0.042194589972496,-0.031562853604555,-0.204417407512665) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.083037249743938,0.189763769507408,0.083635039627552,-0.050967186689377,-0.033744849264622,-0.052619032561779,0.047018490731716,-0.015489514917135,0.068511933088303,0.152130097150803,-0.067932583391666,-0.097208209335804,0.168274745345116,0.125947967171669,0.085117623209953,0.021048581227660) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.204893320798874,0.199736297130585,0.067579232156277,-0.115489944815636,-0.007590789347887,0.057930976152420,0.025464743375778,-0.039881739765406,-0.246038854122162,0.086826533079147,-0.051898259669542,-0.082018114626408,-0.116090260446072,-0.079517662525177,-0.044877357780933,-0.093360811471939) * MODEL12_texOff(vec2(0,1));
res += mat4(0.012202703393996,0.070229820907116,-0.051350750029087,0.123647794127464,-0.077267371118069,0.030112937092781,-0.013918461278081,-0.181110203266144,-0.185580149292946,0.022895503789186,-0.116021431982517,0.101034842431545,-0.090121842920780,0.152917340397835,-0.007939789444208,-0.030239909887314) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.001939043751918,0.041092462837696,0.075724892318249,-0.058100175112486,0.041944034397602,0.027015758678317,0.015761416405439,-0.100685916841030,-0.175533667206764,-0.105499073863029,-0.092019960284233,0.149457126855850,0.102853581309319,-0.081296794116497,-0.114122688770294,-0.234843209385872) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.121559150516987,0.264278262853622,-0.062425747513771,-0.011673915199935,0.013592095114291,0.046260997653008,0.023981915786862,-0.161412149667740,0.127473622560501,-0.077562540769577,-0.137875229120255,0.057614505290985,0.065002873539925,-0.024834871292114,-0.097760774195194,-0.089119464159012) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.220684915781021,0.057135026901960,-0.013223606161773,0.213052615523338) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.051663834601641,-0.123709708452225,0.031588431447744,-0.149988144636154);
res += mat4(-0.097456976771355,-0.297623991966248,0.021408289670944,-0.204549804329872,0.106587916612625,-0.037484291940928,-0.054338525980711,0.019813492894173,0.089028559625149,-0.026780659332871,-0.013088362291455,-0.044210623949766,0.064469940960407,-0.046201609075069,0.004776358604431,0.014711874537170) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.296934247016907,-0.292919754981995,0.092245198786259,0.101051039993763,0.101324483752251,0.128602877259254,0.153682410717010,-0.087859772145748,-0.082986019551754,-0.118116147816181,-0.176850989460945,0.048858132213354,-0.065284579992294,-0.100557178258896,0.111220374703407,-0.071561165153980) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.055076427757740,-0.036679171025753,0.010717069730163,-0.145842775702477,0.082403376698494,-0.021923797205091,0.189982607960701,-0.107592284679413,-0.083279699087143,-0.065447486937046,-0.046649023890495,-0.019532131031156,-0.019167097285390,0.017320161685348,0.006966208573431,-0.035767935216427) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.167018055915833,0.180382296442986,0.039681617170572,0.239440321922302,0.133491784334183,-0.003088062163442,-0.008586523123085,0.136380806565285,0.205252721905708,-0.034852847456932,-0.040720753371716,-0.099266856908798,-0.006961429491639,-0.106953702867031,0.256989270448685,-0.201742112636566) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.077189825475216,0.348025828599930,-0.023113861680031,0.087247423827648,-0.019376210868359,-0.128020629286766,0.176053762435913,-0.047338012605906,-0.392024993896484,0.025747992098331,-0.222223028540611,-0.162351027131081,0.113351762294769,-0.285221040248871,-0.051263943314552,-0.159303888678551) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.024743029847741,-0.072073921561241,-0.000839530199300,0.203482210636139,0.175810053944588,0.241386041045189,0.064764946699142,-0.079256951808929,-0.098658271133900,-0.002816240303218,-0.114340431988239,0.133097127079964,-0.114517405629158,-0.177035525441170,0.139037072658539,-0.018080979585648) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.344272702932358,0.181012630462646,-0.187437444925308,-0.299909800291061,-0.040464907884598,0.095669351518154,0.107672140002251,-0.078240513801575,0.074093207716942,-0.120674297213554,-0.029535226523876,0.096403911709785,0.247408762574196,0.075730741024017,-0.018873276188970,0.136372953653336) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.220295697450638,0.299415379762650,0.016117852181196,0.075553923845291,-0.021435162052512,-0.002350232098252,0.079776920378208,-0.184649616479874,0.251325577497482,-0.419649183750153,0.222435653209686,-0.066404893994331,0.142029896378517,0.007504135835916,-0.258100897073746,0.132180184125900) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.137731254100800,0.060058198869228,0.063688851892948,-0.014829220250249,0.221989914774895,0.006116332951933,0.142457455396652,0.120432771742344,0.019062079489231,0.025465235114098,-0.113688692450523,-0.104528754949570,0.030515706166625,-0.062848806381226,-0.200915575027466,0.013929937034845) * MODEL7_texOff(vec2(1,1));
res += mat4(0.140093892812729,0.109567724168301,-0.050394698977470,-0.170005410909653,0.179087623953819,0.179305255413055,-0.003662705887109,0.158715546131134,-0.098635457456112,-0.057101774960756,0.034787904471159,0.003462065709755,-0.128184124827385,0.078378282487392,0.039248667657375,0.122105509042740) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.237110912799835,-0.061072483658791,-0.004811424296349,-0.039896246045828,-0.050107158720493,0.157977521419525,0.035742577165365,-0.052890181541443,0.094478301703930,0.121113993227482,-0.006283483002335,-0.025071362033486,0.157906711101532,0.225012123584747,-0.219345420598984,-0.047975473105907) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.044018048793077,-0.118238754570484,-0.006125734653324,0.019720818847418,-0.034820005297661,0.058368377387524,0.044162109494209,0.027387209236622,-0.067286670207977,0.025101669132710,0.013953385874629,0.021678367629647,-0.182721450924873,-0.125403061509132,-0.059194628149271,-0.097287036478519) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.251829177141190,-0.066828846931458,0.079379044473171,0.163001030683517,-0.184380412101746,-0.030059589073062,0.215836539864540,-0.210085898637772,-0.131062150001526,0.211557015776634,-0.148611992597580,-0.049735628068447,-0.386598974466324,-0.184375420212746,-0.000232182093896,-0.175352871417999) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.013405723497272,0.057321283966303,-0.285189807415009,-0.180699408054352,-0.221737056970596,-0.030624724924564,0.208525955677032,0.024515612050891,-0.079887956380844,0.365916460752487,-0.041743379086256,-0.227308556437492,0.059620615094900,-0.178044140338898,0.168136745691299,0.295694947242737) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.273338556289673,0.087540023028851,0.125088289380074,-0.186466023325920,-0.062707930803299,-0.019010245800018,0.160768538713455,0.007313690613955,-0.135693922638893,-0.203426629304886,-0.038948353379965,0.099263183772564,-0.161960050463676,-0.021864283829927,0.033980194479227,-0.158690154552460) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.045243676751852,-0.110762447118759,0.119542218744755,0.027197966352105,0.052042346447706,-0.350532740354538,0.393332213163376,0.167919188737869,-0.018056403845549,-0.122380837798119,0.055277306586504,0.017787737771869,-0.220306634902954,-0.018115049228072,0.087532646954060,0.067789211869240) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.018639910966158,0.088232278823853,0.164164006710052,-0.030106538906693,0.186260610818863,-0.386953592300415,0.388795256614685,0.196457967162132,-0.041948664933443,-0.486508518457413,0.089676775038242,-0.067578025162220,0.185424491763115,-0.110481433570385,0.058621846139431,0.059053678065538) * MODEL8_texOff(vec2(1,0));
res += mat4(0.019502654671669,-0.238904282450676,-0.037244401872158,-0.122990071773529,0.078062444925308,-0.107928857207298,0.249868705868721,-0.055922634899616,-0.070804312825203,0.166178584098816,0.122885838150978,-0.207012802362442,-0.064460866153240,0.195705458521843,-0.142268851399422,-0.114831671118736) * MODEL8_texOff(vec2(1,1));
res += mat4(0.078947812318802,0.058681033551693,0.038644675165415,-0.225706607103348,0.113722793757915,0.112478263676167,-0.103812791407108,-0.069155722856522,0.186431124806404,0.032111704349518,-0.053307674825191,0.130801573395729,-0.086611203849316,-0.006409832276404,-0.031443309038877,0.118767805397511) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.117472186684608,-0.180924102663994,-0.014172316528857,-0.005039583891630,-0.098705872893333,0.091983675956726,0.088913813233376,-0.180321305990219,0.182524144649506,0.296908915042877,-0.276067972183228,-0.086542896926403,0.017592154443264,0.259021818637848,-0.112039729952812,0.214795961976051) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.038838047534227,0.026057982817292,-0.019551591947675,0.178900703787804,0.118875637650490,0.053488191217184,-0.092301830649376,0.002119013573974,-0.010799034498632,-0.039241120219231,-0.104234270751476,-0.024675060063601,-0.055608794093132,0.090085789561272,-0.154080346226692,0.223968073725700) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.203350856900215,-0.116226561367512,0.127962812781334,0.038180787116289,-0.058482188731432,0.274655461311340,-0.339467525482178,-0.218617007136345,0.073575064539909,-0.099149234592915,0.093576647341251,0.023297380656004,-0.101412385702133,0.188438281416893,-0.001185544533655,-0.073544360697269) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.233845785260201,0.412978440523148,-0.274908453226089,-0.041950698941946,0.099952816963196,0.064011096954346,-0.724426388740540,-0.013413191772997,-0.022680168971419,-0.322699606418610,0.135705217719078,0.373757570981979,-0.039393253624439,-0.135528936982155,-0.112580873072147,-0.185718625783920) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.061042916029692,0.151414066553116,-0.070038974285126,-0.168435454368591,-0.042402535676956,0.091945566236973,-0.091633811593056,0.074683517217636,0.131503701210022,-0.148911714553833,0.074678473174572,-0.050069779157639,-0.329011142253876,0.021005563437939,0.056817997246981,0.045767720788717) * MODEL9_texOff(vec2(0,1));
res += mat4(0.155774727463722,-0.000676994444802,-0.050464238971472,0.222198113799095,-0.042508862912655,0.172209098935127,0.012692205607891,0.093211516737938,-0.162341609597206,0.028778888285160,-0.098617613315582,-0.156362146139145,-0.034306854009628,0.100261554121971,0.169478148221970,-0.221216827630997) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.024658443406224,-0.383912980556488,0.094657622277737,-0.218598023056984,0.099908016622066,0.093251839280128,-0.023828310891986,0.018906367942691,-0.156397804617882,0.170256748795509,0.148801103234291,0.112357102334499,-0.108281984925270,0.160840392112732,0.117014445364475,-0.073058724403381) * MODEL9_texOff(vec2(1,0));
res += mat4(0.062695749104023,-0.117761306464672,0.103037707507610,-0.076383583247662,0.014653041027486,0.109038092195988,-0.148914068937302,0.018129182979465,0.054232995957136,0.071380659937859,0.113367006182671,0.002460102085024,-0.060714054852724,-0.036259446293116,0.101433426141739,-0.196656718850136) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.144963309168816,0.066202446818352,0.078831262886524,-0.066986791789532,-0.191385924816132,-0.219842374324799,0.064307726919651,0.277432292699814,-0.099524013698101,-0.122528560459614,0.072658464312553,-0.288558512926102,-0.023982062935829,-0.295892447233200,0.170970454812050,-0.092266656458378) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.274641424417496,0.266151458024979,0.073307782411575,0.234929218888283,0.152140855789185,0.063048273324966,0.063254021108150,0.143474578857422,-0.070549018681049,-0.210488155484200,0.091014772653580,0.126048579812050,0.014372159726918,-0.252259731292725,0.108525224030018,-0.132297128438950) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.015127073042095,-0.054916583001614,0.020828917622566,-0.078788951039314,0.189066588878632,-0.020406095311046,-0.074807837605476,-0.108729459345341,0.024515381082892,-0.066912166774273,0.083503372967243,-0.005693054758012,-0.090520866215229,0.010906350798905,0.086564935743809,0.049590244889259) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.073668368160725,-0.275379121303558,0.110146664083004,-0.095308780670166,-0.255798101425171,0.046267315745354,-0.010676505975425,-0.160488396883011,-0.000746761041228,0.112611360847950,0.140645459294319,0.185061484575272,0.219830006361008,-0.044280812144279,0.152902320027351,0.011721760034561) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.141337484121323,-0.268200635910034,0.134822413325310,-0.422274351119995,-0.175641655921936,-0.180295452475548,-0.084929347038269,-0.002910170936957,0.238861292600632,0.117519833147526,-0.029104396700859,-0.060653120279312,0.199399501085281,0.027170183137059,0.195744425058365,0.124943234026432) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.055589023977518,0.049696262925863,0.003758419537917,0.144752055406570,0.206960126757622,0.176703691482544,0.004436692688614,0.055032841861248,-0.108653753995895,-0.179817259311676,0.037358772009611,-0.097736977040768,-0.187875792384148,-0.090359717607498,0.060989104211330,-0.121203504502773) * MODEL10_texOff(vec2(0,1));
res += mat4(0.092940345406532,0.026752723380923,-0.105041019618511,-0.032468564808369,0.115142017602921,0.052367977797985,0.033465638756752,-0.076669655740261,0.310135006904602,0.023036811500788,-0.234488338232040,0.166985973715782,0.050473809242249,-0.063469938933849,-0.306419193744659,-0.149400323629379) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.150824114680290,-0.016318932175636,-0.051039483398199,0.069395780563354,0.007641794160008,0.071322239935398,-0.106741100549698,-0.173679262399673,-0.160067692399025,0.273385196924210,-0.554043829441071,-0.039228644222021,0.184015274047852,0.216385439038277,0.041018601506948,0.067957714200020) * MODEL10_texOff(vec2(1,0));
res += mat4(0.012187318876386,-0.099768474698067,-0.057069197297096,0.052535083144903,-0.011408665217459,-0.059992488473654,0.124283678829670,0.113857544958591,0.200277179479599,0.063012264668941,-0.181030571460724,-0.148744642734528,-0.101247742772102,0.231579050421715,-0.126870855689049,-0.153569519519806) * MODEL10_texOff(vec2(1,1));
res += mat4(0.125225678086281,0.032890401780605,0.002631314797327,0.261884331703186,0.053944487124681,-0.225349858403206,-0.079044103622437,0.212339162826538,-0.000476484128740,0.060305286198854,-0.092626266181469,0.030645135790110,0.090894430875778,-0.028591565787792,-0.057672623544931,0.108951941132545) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.402384668588638,0.145507916808128,-0.237887188792229,-0.042636677622795,0.024187646806240,-0.278825163841248,0.020225865766406,0.051860652863979,0.164157107472420,0.098116442561150,-0.284495979547501,0.066145487129688,-0.157365456223488,0.127019122242928,-0.152632236480713,0.278973639011383) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.019845355302095,0.009988046251237,-0.201152801513672,-0.130355998873711,-0.059674594551325,-0.104950480163097,-0.198030814528465,-0.073696278035641,0.271045178174973,0.158165276050568,-0.140153914690018,0.134227126836777,0.182265043258667,-0.060662142932415,-0.230942532420158,-0.027570752426982) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.275223791599274,-0.014419187791646,0.032219126820564,0.021543778479099,-0.191390559077263,0.071469612419605,-0.057668872177601,0.124407954514027,-0.049122419208288,0.038321029394865,-0.051492966711521,0.000781550363172,0.289869725704193,0.109098389744759,-0.181618124246597,0.074646338820457) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.008888952434063,-0.200335845351219,0.130881190299988,0.220350816845894,0.170420423150063,-0.009375829249620,-0.274200201034546,-0.141474857926369,-0.095198005437851,-0.144966110587120,0.013635829091072,0.194810524582863,-0.260677129030228,-0.172889649868011,0.188220322132111,-0.216542601585388) * MODEL11_texOff(vec2(0,0));
res += mat4(0.289126902818680,-0.018934665247798,-0.061493154615164,0.003934525419027,-0.367527246475220,-0.104703254997730,-0.318790018558502,-0.046581082046032,-0.158231690526009,-0.026224747300148,0.196632742881775,0.139789566397667,-0.253094881772995,0.007013827096671,0.084046900272369,0.173399075865746) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.111837163567543,-0.103803932666779,-0.054704349488020,-0.255143135786057,0.058252424001694,0.127074122428894,-0.093017525970936,0.054622925817966,0.064089499413967,-0.078211143612862,0.208016365766525,0.158196330070496,0.036983687430620,-0.103924185037613,-0.170005679130554,0.121394760906696) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.207233741879463,-0.108695402741432,-0.043558251112700,-0.071552425622940,-0.107233546674252,-0.039820637553930,-0.338602364063263,0.156999796628952,-0.077818125486374,0.042681176215410,0.095018662512302,0.067469492554665,0.334905833005905,0.133749023079872,0.061538487672806,0.175892353057861) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.094419077038765,-0.015969645231962,0.087771445512772,0.204081386327744,0.082245118916035,-0.222795456647873,-0.072696141898632,0.111666209995747,-0.025655580684543,-0.135724499821663,0.171985000371933,-0.187948361039162,0.147610604763031,-0.097809955477715,-0.065532840788364,-0.201521664857864) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.011744265444577,0.306515634059906,-0.017599295824766,-0.028236383572221,0.027469964697957,0.251555532217026,-0.066047340631485,0.250641942024231,-0.105530336499214,0.189846917986870,-0.026100624352694,0.159833550453186,-0.104341223835945,0.183710217475891,-0.079147033393383,0.214568436145782) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.358307003974915,0.354772031307220,-0.009004893712699,-0.108926236629486,0.102152764797211,0.084208987653255,-0.054735407233238,0.136380940675735,0.119462169706821,0.209611877799034,-0.200605556368828,0.014551042579114,0.205740272998810,0.266552686691284,-0.088537007570267,-0.080051548779011) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.195654883980751,0.261676311492920,-0.051663402467966,0.076345071196556,-0.021534457802773,0.077432505786419,0.038182251155376,-0.026463549584150,0.132723927497864,0.120645783841610,-0.058463826775551,0.146169394254684,-0.206442236900330,-0.064420901238918,-0.023823754861951,-0.047414980828762) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.104819521307945,0.113263793289661,0.136412873864174,-0.016104094684124,-0.581237018108368,0.173252359032631,0.081451967358589,-0.252274662256241,-0.273954987525940,0.013881862163544,-0.079702831804752,-0.082046806812286,-0.230672135949135,-0.180861994624138,-0.156494572758675,-0.291210770606995) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.213907554745674,-0.410998702049255,0.104707062244415,-0.177168071269989,0.061816491186619,0.057195246219635,-0.000296564714517,0.115141510963440,0.218916893005371,-0.278739243745804,0.120857506990433,-0.061565190553665,0.175639241933823,-0.270755112171173,0.184135541319847,0.447470903396606) * MODEL12_texOff(vec2(0,0));
res += mat4(0.068701423704624,-0.009088519029319,0.086598739027977,-0.198985219001770,0.032175071537495,0.146967381238937,-0.013716148212552,-0.004406407941133,-0.019299503415823,-0.034458175301552,0.062119342386723,-0.231187194585800,0.067927144467831,-0.043818499892950,-0.002266037045047,-0.091151617467403) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.196320176124573,-0.064196594059467,0.102475270628929,-0.049066796898842,0.057957544922829,-0.287237733602524,0.250574409961700,0.088894173502922,-0.095826715230942,-0.074896410107613,0.101138718426228,-0.212260752916336,0.166208356618881,-0.048703212291002,-0.083267413079739,-0.005537197459489) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.137208148837090,-0.275924205780029,0.023912142962217,-0.030955130234361,-0.072103872895241,0.133492410182953,0.044501416385174,0.029010688886046,-0.128494501113892,0.111910082399845,-0.155301764607430,0.019785154610872,-0.236601963639259,0.009112869389355,-0.409048706293106,-0.228872895240784) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.065064713358879,-0.078230723738670,0.201568350195885,-0.076238013803959,0.029838742688298,0.068306222558022,0.156625166535378,-0.002756457077339,-0.055091295391321,-0.029187021777034,-0.014240498654544,0.043149981647730,0.080713286995888,0.004652335308492,-0.066535711288452,0.169379070401192) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.017349272966385,0.163366064429283,-0.018402962014079,-0.001546933432110) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(-0.246581405401230,0.002670895308256,-0.193287655711174,0.015167328529060);
res += mat4(0.261032283306122,0.032835680991411,0.030139490962029,-0.000806765572634,0.151024699211121,-0.080230593681335,-0.141821876168251,0.145307168364525,0.009115759283304,-0.007216203957796,0.003689463948831,0.055658370256424,0.027224067598581,0.055416435003281,-0.010020036250353,-0.060701753944159) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.185064569115639,-0.068065978586674,-0.071058094501495,-0.154018506407738,-0.041161596775055,-0.205235853791237,-0.322335273027420,-0.034178551286459,0.039489518851042,-0.000270425836788,-0.378605574369431,0.069109767675400,-0.110669314861298,0.067545086145401,-0.009534192271531,0.046202443540096) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.009640214964747,-0.006219051778316,-0.169179901480675,0.182055845856667,-0.443488091230392,-0.292423725128174,0.093383714556694,-0.072682358324528,-0.063001796603203,0.080719314515591,0.012181033380330,-0.111276462674141,0.116064339876175,0.004900545347482,0.021699668839574,-0.091722272336483) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.090970568358898,-0.062931396067142,-0.127306863665581,0.015917476266623,0.016722820699215,0.043719775974751,0.012712095864117,0.160922721028328,0.077796593308449,-0.008393941447139,-0.038440760225058,-0.335401117801666,0.097376413643360,-0.256047904491425,0.121416412293911,0.141365200281143) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.308365225791931,-0.282669395208359,-0.170855268836021,-0.229817152023315,-0.102245740592480,-0.048929091542959,0.104794763028622,-0.055267147719860,0.249120622873306,0.209690868854523,0.108504362404346,0.249692365527153,-0.167014300823212,-0.117618516087532,0.140248775482178,-0.179839283227921) * MODEL7_texOff(vec2(0,0));
res += mat4(0.187003761529922,-0.126856803894043,0.100998416543007,0.092732772231102,-0.201461926102638,-0.174917563796043,-0.014458096586168,0.051603168249130,-0.051771067082882,-0.195339307188988,0.047823343425989,-0.340089827775955,-0.167795494198799,-0.029789570719004,0.036204967647791,-0.026470014825463) * MODEL7_texOff(vec2(0,1));
res += mat4(0.064944602549076,0.149044528603554,0.012649014592171,0.016074156388640,0.127049624919891,-0.055726539343596,0.094422698020935,0.028381263837218,0.043409328907728,-0.032182842493057,-0.091623924672604,-0.199392125010490,0.214271605014801,-0.136494874954224,0.018166620284319,0.136031016707420) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.206356182694435,0.075802251696587,0.160593017935753,0.072471000254154,0.146709382534027,0.014946259558201,-0.223417520523071,0.159742534160614,0.205888047814369,-0.089850619435310,-0.129842653870583,0.119184881448746,-0.136419221758842,-0.186267346143723,-0.101941816508770,-0.075237795710564) * MODEL7_texOff(vec2(1,0));
res += mat4(0.198531717061996,-0.167896017432213,-0.006639936938882,-0.055263824760914,-0.320377320051193,-0.058847948908806,-0.075346812605858,0.196425721049309,-0.347231715917587,-0.064062237739563,-0.003155124140903,-0.062965013086796,-0.058152332901955,-0.210955962538719,0.059580706059933,-0.166391581296921) * MODEL7_texOff(vec2(1,1));
res += mat4(0.137084797024727,0.035093069076538,-0.024024194106460,0.036709915846586,-0.217413142323494,-0.009896642528474,-0.018893424421549,0.006448640953749,0.036443382501602,-0.162215098738670,0.004073693882674,0.014565458521247,-0.135367348790169,0.002762830816209,-0.060372270643711,-0.132453173398972) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.010371140204370,-0.005949034821242,-0.201737254858017,-0.170810341835022,0.086156219244003,0.025914227589965,-0.050957534462214,0.017155099660158,-0.042741797864437,-0.103194616734982,-0.100493438541889,-0.177615687251091,-0.041216313838959,-0.103992342948914,0.274768978357315,0.151258423924446) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.315719127655029,0.025980899110436,-0.220669135451317,0.008271764032543,0.017198370769620,0.036791138350964,0.030035622417927,0.084605753421783,0.004113332834095,0.078351169824600,0.117266215384007,-0.068929895758629,0.340655386447906,0.110172837972641,0.180471882224083,-0.171376526355743) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.172640845179558,-0.124714702367783,-0.131328091025352,0.203163966536522,-0.182797953486443,0.157562211155891,-0.061523921787739,-0.127132624387741,0.071841545403004,0.093923725187778,0.026647647842765,0.032041698694229,0.348778098821640,-0.015758298337460,0.135074034333229,-0.090761281549931) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.090400189161301,-0.011466866359115,0.277304619550705,-0.025577388703823,-0.101802803575993,0.139498233795166,0.129052415490150,0.024524074047804,-0.152337402105331,0.230328932404518,-0.028922555968165,0.205313876271248,0.153628423810005,-0.073455825448036,0.051934029906988,0.310993760824203) * MODEL8_texOff(vec2(0,0));
res += mat4(0.218297258019447,-0.008293624967337,-0.064109258353710,-0.251782834529877,0.151962026953697,0.090589806437492,-0.013030471280217,0.162726923823357,0.040393173694611,-0.216501563787460,-0.017072034999728,-0.117886923253536,0.129347071051598,-0.112886063754559,-0.116644792258739,-0.242811471223831) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.030631793662906,0.001129764132202,0.090198583900928,-0.154501736164093,0.018482003360987,0.050077714025974,0.032535918056965,-0.184106543660164,0.046635266393423,0.132543221116066,0.001370875281282,-0.003786399494857,0.140488922595978,-0.074857965111732,-0.136541247367859,0.000887482659891) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.171233996748924,0.039661280810833,-0.069677151739597,0.024668894708157,0.001397067098878,0.015297976322472,0.007828376255929,0.066843405365944,-0.116823315620422,0.155717164278030,0.059034671634436,-0.022890962660313,-0.069166362285614,-0.232916265726089,-0.132959932088852,0.058114890009165) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.129107818007469,0.128263324499130,0.010707884095609,-0.006468253675848,-0.119009822607040,0.041669063270092,0.040501594543457,0.119332253932953,-0.020332550629973,0.085416182875633,0.048953350633383,0.064437530934811,-0.065897837281227,-0.013940807431936,0.049583464860916,-0.069384194910526) * MODEL8_texOff(vec2(1,1));
res += mat4(0.003005459904671,0.018500803038478,0.008782732300460,0.016466015949845,-0.049488142132759,0.170702934265137,0.055641248822212,0.046323843300343,-0.261904656887054,0.097500264644623,-0.075085811316967,0.048326406627893,-0.063454538583755,0.008772889152169,0.218462973833084,0.090385288000107) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.009947874583304,0.072402365505695,-0.285247504711151,-0.046441614627838,-0.021984448656440,-0.100315056741238,0.284530848264694,-0.268336355686188,-0.056406673043966,0.187698170542717,0.230154529213905,0.227708429098129,0.113540746271610,-0.021024666726589,0.149303436279297,0.149889945983887) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.209429219365120,0.013274104334414,-0.111067004501820,0.020887909457088,0.049904532730579,-0.058050420135260,0.149312406778336,0.124305747449398,0.198003992438316,-0.052153050899506,0.124702371656895,-0.012196512892842,0.352697521448135,0.009708242490888,0.021076874807477,0.240207985043526) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.154540225863457,-0.005908661056310,0.041329771280289,-0.195928350090981,0.195128038525581,-0.003952691331506,0.087893553078175,0.170115560293198,0.096404798328876,-0.035100415349007,0.024975731968880,0.135962724685669,0.138459190726280,0.120784617960453,-0.161978140473366,0.031723093241453) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.165939599275589,0.128415942192078,-0.050998516380787,0.001726597081870,-0.146662488579750,-0.050346583127975,0.176120564341545,-0.020231539383531,-0.214679777622223,-0.016242060810328,0.015389980748296,-0.149675935506821,-0.028969435021281,-0.009243450127542,0.134504511952400,-0.530273377895355) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.168379947543144,0.327350199222565,-0.219635054469109,0.176434233784676,0.068564370274544,-0.032399959862232,0.141297057271004,-0.036609217524529,-0.287636369466782,0.088551811873913,0.013414470478892,0.095186263322830,0.192092955112457,0.350776731967926,0.087457649409771,0.416216880083084) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.094340980052948,0.028738327324390,-0.008350676856935,-0.161035642027855,-0.027486793696880,0.041500799357891,0.002731912536547,-0.009402581490576,-0.099438965320587,-0.027949843555689,-0.037769373506308,-0.268024414777756,-0.114817373454571,0.008600835688412,0.101555764675140,-0.160336554050446) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.020195767283440,0.136245250701904,0.013715418986976,-0.061794467270374,0.147940516471863,-0.141281932592392,-0.220137223601341,0.122315332293510,-0.050135288387537,-0.088705740869045,0.089214250445366,-0.069296702742577,0.192161157727242,0.089021198451519,0.026739872992039,-0.475559681653976) * MODEL9_texOff(vec2(1,0));
res += mat4(0.022846424952149,0.131773591041565,0.091760538518429,0.102719187736511,-0.024090413004160,-0.080159023404121,-0.127618104219437,0.011817115359008,-0.043898303061724,-0.050571665167809,-0.019055191427469,0.231876716017723,0.453477412462234,0.041265361011028,-0.127598881721497,0.245246142148972) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.060778062790632,0.135468155145645,-0.121566191315651,-0.130561619997025,-0.107979908585548,0.019951671361923,0.166361212730408,0.014582522213459,0.168893188238144,-0.056554831564426,0.011026004329324,-0.031100358814001,-0.145144581794739,0.050292436033487,-0.040586423128843,-0.065796308219433) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.085467867553234,0.136835008859634,-0.481827437877655,-0.037806950509548,-0.347290486097336,0.059089601039886,-0.255718380212784,0.078208766877651,-0.096140593290329,0.005988605786115,0.057442750781775,-0.078732185065746,-0.141612976789474,-0.081219635903835,-0.036284510046244,-0.102665401995182) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.153525769710541,0.022233283147216,-0.245738238096237,0.058621875941753,-0.038620341569185,0.015951696783304,0.022123962640762,0.172947332262993,-0.036821112036705,0.039131611585617,-0.090745985507965,0.046886160969734,-0.237780004739761,0.117982342839241,0.115597158670425,-0.142170175909996) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.152030915021896,-0.062889561057091,0.002179686911404,-0.283352047204971,0.196863293647766,0.085877589881420,-0.088695757091045,0.166726425290108,-0.019711235538125,-0.091553367674351,0.134335830807686,-0.210095062851906,-0.311302840709686,0.079438112676144,-0.193659812211990,-0.203040286898613) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.066977158188820,-0.122739776968956,0.311398357152939,0.082113817334175,0.029454080387950,-0.330361545085907,0.080533221364021,-0.759594500064850,0.287470608949661,-0.025786347687244,0.039520788937807,0.207964703440666,-0.246202334761620,-0.144031003117561,-0.056260209530592,0.232564523816109) * MODEL10_texOff(vec2(0,0));
res += mat4(0.161817401647568,0.029669068753719,0.296085178852081,0.067662701010704,0.251988738775253,0.299418717622757,0.168368801474571,0.382766962051392,0.003882317105308,-0.080764800310135,-0.011000140570104,-0.130280673503876,-0.288497596979141,0.013274367898703,0.097391009330750,-0.325996369123459) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.096299596130848,0.007866634055972,-0.091781377792358,0.066894054412842,-0.170316994190216,-0.032213259488344,-0.098826341331005,0.072377271950245,0.000847019604407,0.063855066895485,0.094445429742336,0.069164618849754,-0.299426943063736,0.139507487416267,0.166649639606476,0.028979090973735) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.155457377433777,-0.047861162573099,-0.018306238576770,0.073274709284306,-0.462666004896164,0.064932122826576,0.058337945491076,-0.295041441917419,0.072772674262524,0.151175111532211,-0.059719435870647,-0.076252639293671,-0.148806467652321,-0.154059693217278,0.188947632908821,0.070281401276588) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.040377523750067,0.013035883195698,-0.133022859692574,0.044302020221949,0.187379688024521,-0.012661680579185,0.017480479553342,0.158754304051399,-0.017213305458426,0.107730820775032,-0.016497034579515,0.073312051594257,-0.129576101899147,0.044520776718855,0.051440723240376,-0.257791996002197) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.092356868088245,-0.155725196003914,-0.074972413480282,-0.015936596319079,0.098505824804306,-0.001196118653752,-0.048105873167515,0.117408521473408,0.032734006643295,0.051407881081104,0.038598220795393,0.129550218582153,-0.256256192922592,-0.035762108862400,-0.063137240707874,-0.344161242246628) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.012600336223841,-0.074501641094685,0.157706707715988,0.016351724043489,-0.221599295735359,-0.080750547349453,-0.097222194075584,-0.119863532483578,0.009207581169903,-0.201533198356628,0.177082717418671,0.182079598307610,-0.275702893733978,0.021006708964705,-0.317261815071106,0.005688826087862) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.254223287105560,-0.177383720874786,0.081115230917931,0.111355073750019,-0.340921342372894,0.058534402400255,-0.291055023670197,0.073670119047165,-0.106558717787266,0.034438610076904,-0.008011698722839,0.124924518167973,-0.249761983752251,-0.078180000185966,0.024196177721024,0.103579469025135) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.132316976785660,-0.053814433515072,-0.132303729653358,-0.395090192556381,0.248621061444283,0.111091852188110,-0.215392887592316,0.001180284190923,-0.048819415271282,0.116134755313396,0.015819197520614,0.062217745929956,-0.052829187363386,0.104533642530441,0.064033396542072,-0.114051550626755) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.065564393997192,0.257769435644150,-0.344314783811569,-0.045375097543001,-0.246707677841187,-0.021247977390885,-0.114084117114544,-0.030661093071103,-0.088724330067635,0.153370752930641,0.084580227732658,-0.025451045483351,0.013607577420771,0.109673745930195,0.163036584854126,0.101994298398495) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.006947386078537,-0.182299792766571,-0.260667681694031,0.163397535681725,-0.021603539586067,0.041590947657824,-0.103358097374439,-0.252025753259659,-0.022435542196035,-0.133527532219887,-0.084049098193645,-0.138862714171410,0.098386116325855,0.144902825355530,0.294258415699005,-0.286653250455856) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.049125093966722,-0.053109504282475,0.036426331847906,0.005588096566498,0.042200401425362,-0.044444989413023,0.003847318701446,0.082923188805580,-0.035972274839878,-0.004165287595242,-0.043272677809000,0.110600151121616,-0.291909188032150,0.123658142983913,-0.016926502808928,0.010938007384539) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.006827727891505,-0.077928885817528,0.207393169403076,-0.186092495918274,-0.264698803424835,0.093235164880753,0.165737032890320,-0.043173830956221,0.013284759595990,0.149798005819321,-0.194287896156311,-0.203473925590515,-0.131317853927612,-0.192624285817146,-0.223647743463516,0.113862857222557) * MODEL11_texOff(vec2(1,0));
res += mat4(0.310558259487152,-0.175725534558296,0.071763657033443,-0.051448009908199,0.007058580406010,0.009399687871337,0.041459001600742,0.061170957982540,-0.297391325235367,-0.008301561698318,0.032083354890347,-0.069919466972351,-0.210142835974693,0.035329300910234,-0.136219829320908,-0.229606717824936) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.005134270992130,-0.153555244207382,-0.308452218770981,-0.124391742050648,0.141824334859848,-0.136343017220497,-0.247387155890465,0.164547726511955,0.014047970995307,-0.120733097195625,-0.034448862075806,-0.064031139016151,0.103451929986477,-0.027986155822873,0.018620902672410,-0.239759445190430) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.026791287586093,0.093683265149593,-0.211836948990822,-0.172961741685867,0.011889824643731,-0.093178011476994,-0.110486522316933,0.016997070983052,0.014129996299744,-0.023985581472516,-0.138499900698662,0.122455418109894,-0.103043854236603,-0.020065950229764,0.204703226685524,0.058853037655354) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.172746554017067,0.030304225161672,-0.528644442558289,0.371617585420609,0.020917272195220,0.051913764327765,0.000899069127627,-0.040437474846840,-0.014080857858062,0.042740162461996,-0.058548755943775,0.081766337156296,0.131502181291580,0.096494689583778,0.159876167774200,-0.137181118130684) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.074634522199631,-0.052042484283447,-0.109565876424313,0.021303256973624,-0.228727698326111,-0.065102629363537,0.070510171353817,0.072420366108418,0.004030155949295,0.102123223245144,0.173448443412781,-0.122005350887775,0.067101821303368,0.100651614367962,0.101296149194241,0.054281558841467) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.005463643930852,0.175402373075485,0.070942722260952,-0.326192945241928,0.037682659924030,-0.037108048796654,-0.031282618641853,0.212003201246262,0.116465732455254,-0.246887803077698,0.064709521830082,-0.251614391803741,-0.002656723139808,-0.206250086426735,-0.206702411174774,0.090224511921406) * MODEL12_texOff(vec2(0,0));
res += mat4(0.168178230524063,0.116603910923004,-0.043426554650068,0.248417779803276,-0.002558821812272,0.054530158638954,-0.080214351415634,0.181609690189362,-0.031832762062550,0.198720768094063,0.037413813173771,0.193062111735344,0.008494494482875,0.010312465019524,-0.481972992420197,-0.039932712912560) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.044897582381964,-0.043275643140078,-0.045639302581549,-0.104405269026756,0.215847626328468,0.298437088727951,-0.089034788310528,0.039463844150305,-0.033646203577518,0.152371451258659,-0.009950776584446,-0.099276676774025,0.093378536403179,0.031404364854097,0.010709536261857,-0.014185123145580) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.030774060636759,0.125800564885139,-0.108700245618820,-0.055330265313387,-0.067021653056145,0.147830113768578,-0.219987303018570,0.036134637892246,-0.055243760347366,0.143411129713058,0.027995465323329,-0.014054056257010,-0.156282410025597,0.174899876117706,0.188296526670456,-0.009553346782923) * MODEL12_texOff(vec2(1,0));
res += mat4(0.115002840757370,0.188181400299072,-0.067577116191387,-0.047410283237696,0.042661074548960,0.031750530004501,0.054602842777967,0.025198934599757,0.148035436868668,0.064465411007404,-0.050109904259443,-0.040486086159945,0.004851978272200,0.231414958834648,0.223926946520805,0.137273311614990) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.001145881484263,0.318401247262955,-0.118540517985821,0.007070156745613) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(-0.182734012603760,0.048186108469963,-0.059294611215591,-0.101425610482693);
res += mat4(0.135246619582176,0.093922398984432,0.068748101592064,0.102156385779381,-0.179895132780075,0.062302745878696,0.029769720509648,-0.057815589010715,0.024442939087749,-0.027859201654792,-0.058949518948793,0.070216923952103,-0.007354474160820,0.105084322392941,-0.046466410160065,-0.024678615853190) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.182233795523643,0.221134364604950,0.123750053346157,0.064128428697586,0.131703630089760,-0.063517965376377,0.063839510083199,0.111198931932449,-0.091097854077816,-0.028561875224113,-0.026241246610880,-0.066864579916000,-0.083351641893387,-0.025373002514243,-0.012232397682965,0.009284692816436) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.005493853241205,-0.248924970626831,-0.082892924547195,0.043022621423006,-0.153263792395592,0.065302759408951,-0.139413654804230,0.121951714158058,-0.005591282621026,0.026223227381706,0.005503795575351,0.098496548831463,0.125824704766273,0.099642060697079,0.020716717466712,0.044135306030512) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.173411592841148,-0.027710201218724,0.173880577087402,0.135265558958054,0.013247425667942,0.066958792507648,0.035394564270973,-0.118719756603241,-0.296441137790680,-0.063104741275311,0.088456794619560,0.313376694917679,0.110160648822784,0.063928253948689,0.032840162515640,-0.020330533385277) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.114233471453190,0.259534150362015,-0.091768912971020,0.014174371957779,0.286884158849716,0.040875982493162,0.085490658879280,0.051846161484718,-0.119152754545212,-0.337725937366486,0.118183523416519,0.169252261519432,0.126753136515617,-0.035249743610620,0.094261661171913,0.060895822942257) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.115175850689411,-0.266109943389893,-0.083611242473125,-0.122682437300682,-0.027306787669659,-0.162767291069031,-0.112862005829811,0.015203828923404,0.185462862253189,0.126356020569801,0.105479456484318,-0.113623082637787,-0.030800044536591,-0.050514344125986,0.028488220646977,0.239023089408875) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.160820901393890,0.081389397382736,0.043478783220053,-0.058370478451252,0.072597466409206,0.113485112786293,0.063562281429768,-0.098701663315296,-0.126467451453209,0.009268316440284,0.025368172675371,0.042874611914158,-0.023284057155252,0.042965404689312,0.101744756102562,0.051642224192619) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.055967774242163,-0.212420955300331,0.083300277590752,0.093649551272392,0.238438233733177,-0.039217960089445,-0.025567019358277,-0.053880065679550,0.113855190575123,-0.010183621197939,0.037258971482515,-0.009609312750399,0.051343180239201,-0.017427388578653,0.061888936907053,0.118263304233551) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.005127865821123,-0.047994643449783,0.037303555756807,0.108138784766197,-0.065460458397865,-0.038378916680813,-0.055912345647812,0.009291118010879,0.066305004060268,0.162326991558075,0.036967899650335,0.056867945939302,-0.046757467091084,-0.192345008254051,0.071941472589970,-0.039738133549690) * MODEL7_texOff(vec2(1,1));
res += mat4(0.031665869057178,-0.151547759771347,0.011295069940388,0.108728446066380,-0.052165724337101,-0.114639759063721,0.007471553981304,-0.089258886873722,-0.031663395464420,-0.029726013541222,0.057896569371223,0.141169205307961,0.014025695621967,-0.091508604586124,-0.141677111387253,-0.069860033690929) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.094224445521832,-0.011600865051150,-0.001104055671021,0.039875093847513,-0.131685987114906,-0.132668167352676,0.033522576093674,0.114143475890160,0.170114383101463,0.003380465321243,0.124783173203468,-0.062223426997662,-0.012338006868958,0.102832414209843,-0.192183136940002,-0.064119748771191) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.116016186773777,-0.043374203145504,-0.136710420250893,0.032530564814806,0.128378555178642,0.138267248868942,0.078624412417412,0.019509743899107,-0.030968675389886,0.023597940802574,0.101804949343204,0.061347432434559,0.056951031088829,-0.016728457063437,0.052502427250147,0.132635846734047) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.126700595021248,-0.028492840006948,0.207753837108612,0.447191596031189,-0.250686228275299,-0.061491344124079,-0.037173114717007,-0.006792884785682,0.063362061977386,0.158374547958374,-0.115401387214661,-0.281705945730209,-0.183928877115250,0.111781015992165,-0.126700535416603,-0.209539368748665) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.165418922901154,0.020347055047750,-0.037994332611561,-0.528928518295288,-0.234502822160721,0.055189229547977,0.136958226561546,-0.361713767051697,-0.186565041542053,0.255410969257355,-0.460883289575577,0.023818377405405,-0.032705463469028,-0.072043493390083,0.138370633125305,0.301818728446960) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.193690225481987,0.089356936514378,0.051804870367050,0.142122834920883,0.050805546343327,0.111018180847168,0.044106848537922,0.154577970504761,0.246301338076591,0.040006689727306,0.254851430654526,-0.002412168309093,0.134030535817146,0.068216651678085,0.137955144047737,0.155615165829659) * MODEL8_texOff(vec2(0,1));
res += mat4(0.129165172576904,-0.005096766632050,0.007799520622939,0.009554774500430,0.030858052894473,-0.166744917631149,0.125088125467300,-0.113490261137486,-0.143906891345978,-0.073362745344639,-0.096188858151436,-0.031568862497807,0.036233920603991,-0.145208165049553,-0.060284148901701,-0.040668506175280) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.401291817426682,-0.161059409379959,0.048919819295406,0.094745770096779,0.134457230567932,-0.016105849295855,0.079669386148453,0.072285741567612,-0.322628468275070,0.016056990250945,-0.233631834387779,-0.105732493102551,-0.024081105366349,0.022173743695021,-0.094532340764999,0.126392826437950) * MODEL8_texOff(vec2(1,0));
res += mat4(0.078327722847462,0.091772563755512,-0.072427451610565,-0.013138354755938,-0.034743972122669,0.006608807016164,0.040387257933617,-0.083424568176270,-0.057405933737755,0.073302164673805,0.058059424161911,0.047192309051752,-0.020502554252744,0.057028830051422,-0.007605546154082,-0.053497873246670) * MODEL8_texOff(vec2(1,1));
res += mat4(0.040405638515949,-0.028924364596605,0.050687693059444,-0.052302267402411,0.125246673822403,-0.222721263766289,-0.010306181386113,0.071269132196903,0.212537482380867,-0.012651253491640,-0.114537477493286,0.100923337042332,0.078400418162346,-0.158565387129784,-0.003636439330876,0.365551292896271) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.020103497430682,0.046754214912653,0.146770969033241,-0.031734108924866,-0.131475344300270,-0.005271610803902,-0.047727204859257,-0.066600933670998,-0.028722589835525,0.065899126231670,-0.187333703041077,0.053693667054176,-0.172028988599777,-0.107470713555813,0.047506984323263,0.036716707050800) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.108483038842678,0.025199647992849,-0.040872350335121,0.022233292460442,-0.103025674819946,-0.199881523847580,0.011374806053936,-0.105246633291245,0.060646574944258,-0.061250515282154,-0.123573035001755,0.121435694396496,0.066328346729279,0.412030845880508,0.038081351667643,-0.147630557417870) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.320244103670120,-0.213659599423409,0.177409663796425,0.168428421020508,0.208627685904503,0.301515489816666,0.054086919873953,-0.152499541640282,-0.002417460549623,-0.015099641866982,0.104537300765514,0.165010064840317,-0.104958541691303,-0.016227943822742,-0.004583041183650,-0.040612820535898) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.212869599461555,0.104828149080276,-0.173784598708153,-0.304721534252167,0.097147226333618,-0.160582080483437,0.130811452865601,-0.003816491691396,0.231226414442062,0.122353173792362,0.060292206704617,-0.019998332485557,-0.472586721181870,-0.411209464073181,0.029152505099773,-0.042945288121700) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.076295785605907,0.146432816982269,-0.159010574221611,-0.485574185848236,-0.023898383602500,0.134277507662773,0.014314107596874,0.026137398555875,0.013433622196317,-0.313967555761337,-0.027768775820732,-0.204444199800491,0.130644977092743,0.313013911247253,0.003035377711058,-0.328031450510025) * MODEL9_texOff(vec2(0,1));
res += mat4(0.215414658188820,0.110523529350758,0.046355415135622,0.024121547117829,-0.048571951687336,-0.027858909219503,-0.046289555728436,-0.045737329870462,-0.157672569155693,-0.150055482983589,-0.013704785145819,0.075847953557968,-0.103944294154644,0.073390305042267,-0.020391795784235,0.179843619465828) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.115663513541222,0.088236652314663,0.001103179762140,-0.182130500674248,0.031524281948805,-0.045597191900015,-0.037033569067717,0.125610560178757,-0.090239204466343,0.099780671298504,-0.012207658961415,-0.050674818456173,-0.176739588379860,0.030825495719910,0.024902047589421,-0.101276755332947) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001008975203149,-0.023620398715138,-0.120473966002464,-0.110864028334618,0.077051021158695,0.004688908811659,-0.004980836063623,0.052934776991606,0.044942893087864,-0.187071517109871,-0.040555715560913,0.022483900189400,0.057335693389177,0.293624073266983,0.057239491492510,-0.247130900621414) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.420940130949020,-0.278599947690964,-0.010994646698236,0.277552485466003,0.137350216507912,-0.213907882571220,0.026979725807905,-0.093509331345558,-0.065793961286545,-0.100006319582462,0.013501153327525,-0.041719339787960,-0.040408510714769,0.073092259466648,0.023772908374667,-0.106409005820751) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.171530455350876,-0.179910048842430,-0.137347891926765,-0.256863296031952,0.068464972078800,-0.021818693727255,0.035488914698362,0.022898217663169,-0.072765417397022,0.075167253613472,-0.052123378962278,0.034980464726686,-0.042146261781454,-0.414221912622452,-0.021690241992474,-0.192658215761185) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.019701503217220,-0.154688075184822,-0.084979988634586,-0.357354968786240,0.170359119772911,0.140388995409012,-0.137667432427406,-0.122437544167042,0.007032220251858,0.086389079689980,0.004468566272408,-0.059437509626150,-0.062742121517658,0.159599199891090,0.044490326195955,0.182080104947090) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.147325441241264,-0.038447000086308,0.054081626236439,0.020185865461826,-0.183633789420128,0.117089994251728,0.000120154480101,-0.030273459851742,-0.109653703868389,-0.157017737627029,0.146467730402946,-0.086226776242256,0.036421924829483,0.106819264590740,-0.093999445438385,0.015170043334365) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.134293705224991,-0.033859282732010,0.026584820821881,-0.050839960575104,0.152942717075348,0.209401756525040,-0.054311316460371,0.410643309354782,0.153809338808060,-0.050471890717745,0.297432810068130,0.149399295449257,-0.061144646257162,-0.291620373725891,0.055546652525663,-0.182018548250198) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.061440095305443,0.215891525149345,-0.005308459047228,-0.016584217548370,-0.213917061686516,-0.286315441131592,-0.133626684546471,-0.178748488426208,0.015120060183108,-0.087223514914513,-0.019020160660148,-0.163742765784264,0.035319611430168,0.151552930474281,0.056620869785547,0.294063448905945) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.026612514629960,-0.039075534790754,0.030631132423878,0.087077021598816,-0.058930583298206,-0.077641174197197,0.004379786085337,0.033704776316881,0.049383763223886,-0.327682703733444,0.008300809189677,0.132761701941490,0.031550396233797,-0.013361293822527,0.008574350737035,-0.223632976412773) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.049226321280003,0.104182250797749,0.020925678312778,0.075158663094044,0.145400822162628,0.056374188512564,0.046170368790627,0.058358620852232,-0.114867761731148,0.114974118769169,-0.237844944000244,-0.341444492340088,0.036828584969044,0.026857476681471,0.006922626867890,0.115951180458069) * MODEL10_texOff(vec2(1,0));
res += mat4(0.022153124213219,-0.095552608370781,-0.015581487677991,-0.058501977473497,0.024042271077633,-0.071257814764977,-0.077785134315491,-0.098336599767208,-0.122128963470459,-0.119153805077076,0.012916648760438,-0.055087044835091,-0.080667652189732,0.072245791554451,0.065012805163860,0.057496510446072) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.009002608247101,-0.077360436320305,0.044331680983305,0.036303080618382,0.036369316279888,0.007134411949664,0.163548827171326,0.002792515559122,-0.036827098578215,-0.017984932288527,-0.042652234435081,0.108500175178051,-0.018109638243914,-0.162348419427872,0.001912677777000,0.252400606870651) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.127668544650078,0.012599429115653,-0.060624152421951,0.001550501445308,0.118154272437096,0.037177395075560,0.076922118663788,-0.068112283945084,-0.122942604124546,0.047094725072384,-0.130299195647240,-0.082950085401535,-0.045248512178659,-0.044328764081001,-0.021548660472035,-0.371978223323822) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.151980236172676,-0.216238334774971,-0.146254569292068,0.000146883496200,-0.111062176525593,0.050245653837919,-0.134204015135765,-0.024954982101917,0.106720723211765,0.050369326025248,0.061293721199036,0.061456114053726,0.119321338832378,0.111873552203178,-0.031370859593153,-0.012366769835353) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.278393805027008,-0.002530887955800,-0.006506009493023,0.106611631810665,-0.005422207992524,0.192102223634720,0.067145526409149,0.096096090972424,0.125198110938072,-0.021161168813705,-0.075040206313133,0.131766602396965,-0.072723053395748,0.096039682626724,0.037634354084730,0.226916939020157) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.324497640132904,0.325021445751190,0.110916979610920,-0.033806126564741,-0.378765374422073,-0.159888431429863,-0.001340694958344,-0.135722994804382,-0.247018083930016,-0.003872429020703,0.318699151277542,0.220361158251762,-0.129520758986473,-0.002950241556391,-0.006882178597152,-0.241976335644722) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.039183918386698,-0.264800667762756,-0.209494948387146,-0.444512784481049,0.196197852492332,0.157997310161591,0.211931198835373,0.060244768857956,0.223888546228409,0.194473341107368,0.202670484781265,0.048701040446758,0.001294145244174,0.035279538482428,0.064611703157425,0.146883144974709) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.194891199469566,0.097033061087132,0.032892286777496,0.119310215115547,0.073230080306530,-0.054272182285786,0.093806631863117,0.089542433619499,0.056006796658039,0.083525270223618,0.048808269202709,0.075143009424210,-0.031097171828151,-0.113597944378853,-0.018871570006013,-0.009163965471089) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.043789163231850,-0.139493033289909,0.153679132461548,0.026263633742929,-0.043344769626856,-0.186037197709084,-0.011585182510316,-0.147752657532692,-0.058363787829876,-0.117924831807613,0.038984209299088,-0.081506960093975,0.063261799514294,-0.054222907871008,-0.065789438784122,-0.012576605193317) * MODEL11_texOff(vec2(1,0));
res += mat4(0.090922325849533,-0.107218436896801,0.055562604218721,-0.068083085119724,-0.003840690478683,0.074339874088764,0.087899141013622,-0.201572120189667,0.010295811109245,-0.060294199734926,0.055087909102440,0.125554382801056,0.135677531361580,0.335344642400742,-0.073956668376923,-0.016775850206614) * MODEL11_texOff(vec2(1,1));
res += mat4(0.051540352404118,-0.121694825589657,0.044464096426964,0.156668886542320,-0.076578743755817,0.157659992575645,0.010917559266090,0.175850883126259,-0.204406186938286,-0.048610627651215,-0.053215321153402,0.112250179052353,-0.227438360452652,0.042773045599461,-0.180242761969566,-0.050080783665180) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.210471212863922,0.044211026281118,0.024647584185004,-0.024297751486301,-0.013101216405630,0.196855917572975,0.045515239238739,-0.075853109359741,0.112878300249577,0.003397519234568,-0.013738698326051,0.045075003057718,0.145637646317482,-0.001419794978574,-0.449782758951187,-0.068083919584751) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.282154470682144,0.064864650368690,-0.066781148314476,-0.090026937425137,0.034981649369001,-0.002196253975853,-0.006702915299684,0.069407500326633,0.079950802028179,-0.056397873908281,0.032969746738672,0.000210130921914,-0.028708470985293,0.075224168598652,0.073376215994358,0.054564990103245) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.009830350987613,-0.113710187375546,0.064939759671688,0.186150908470154,-0.294409543275833,0.140337288379669,-0.084417074918747,-0.015587809495628,-0.100396856665611,0.072918243706226,-0.317374646663666,-0.296403467655182,-0.493562072515488,-0.020833749324083,-0.262634903192520,-0.139893367886543) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.180932581424713,-0.001999642699957,-0.062798842787743,-0.025094274431467,0.115035593509674,0.139086917042732,-0.118681959807873,-0.335078090429306,0.084144048392773,-0.248622149229050,-0.018517248332500,0.277670294046402,0.098600991070271,-0.103952080011368,0.219959616661072,0.437300026416779) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.119329527020454,-0.093660973012447,-0.087291404604912,-0.147732853889465,0.080985568463802,0.006724531296641,-0.029211567714810,0.195687353610992,-0.052431475371122,0.005939061753452,0.053313523530960,-0.047036591917276,0.040127109736204,0.030659772455692,-0.116251096129417,-0.243534222245216) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.015900459140539,0.073603384196758,-0.035231392830610,0.087896943092346,0.015780599787831,-0.000478866742924,-0.124691687524319,-0.010821842588484,-0.052737932652235,-0.094319075345993,-0.081794932484627,0.032797433435917,-0.094342127442360,-0.173379123210907,0.018071200698614,0.044149942696095) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.020036382600665,0.057023912668228,-0.099177569150925,0.242728710174561,-0.053318183869123,0.021077694371343,-0.092476725578308,0.003938709851354,-0.011027667671442,0.002882827306166,-0.039407525211573,-0.043758153915405,0.074196055531502,0.157884806394577,0.034749299287796,0.018455578014255) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.068051740527153,-0.017271613702178,-0.040532402694225,-0.058617070317268,0.064988717436790,0.022005928680301,-0.025852600112557,0.084153130650520,0.068147398531437,-0.059640940278769,-0.036481618881226,0.012654851190746,-0.079599328339100,0.107197739183903,0.011685051023960,-0.286498486995697) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.102335028350353,0.261481225490570,0.913301229476929,0.062210068106651) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.154850706458092,-0.158712685108185,-0.186143711209297,-0.158022671937943);
res += mat4(-0.018738122656941,-0.004286471754313,-0.053249008953571,0.022988708689809,-0.069382622838020,0.081988528370857,0.019527852535248,-0.070176720619202,0.060634810477495,-0.026581844314933,0.087076149880886,0.106336228549480,0.026389861479402,-0.076864838600159,-0.032964505255222,-0.029904631897807) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.004139492753893,-0.114633679389954,-0.114040955901146,-0.022282423451543,0.102692164480686,0.057631433010101,-0.035281337797642,0.030350187793374,0.009470239281654,-0.152233406901360,0.170832440257072,0.120530061423779,-0.060853146016598,-0.147322729229927,0.093254588544369,-0.013718306086957) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.102802976965904,0.001075941254385,-0.092695966362953,0.017503922805190,-0.169452443718910,-0.157294005155563,-0.000544262584299,-0.167254149913788,0.015168767422438,0.040811702609062,0.096433654427528,0.150653377175331,-0.027640230953693,-0.147502020001411,-0.013319360092282,0.096819937229156) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.094979837536812,-0.058281447738409,0.016753692179918,-0.037391003221273,-0.177262589335442,0.053735174238682,0.103496588766575,0.033349044620991,0.108700186014175,0.119715787470341,-0.103783912956715,0.042253907769918,-0.077012144029140,-0.010753126814961,-0.035041432827711,-0.021937517449260) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.169718682765961,-0.348951518535614,0.276289880275726,-0.053249888122082,0.271791696548462,-0.032622747123241,-0.225606665015221,0.047627087682486,-0.202318295836449,0.216676518321037,-0.151561409235001,0.059424590319395,0.136176675558090,0.199322015047073,-0.395753055810928,-0.070303700864315) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.100017979741096,0.063942782580853,0.042858131229877,0.171471372246742,-0.035815928131342,0.113930769264698,-0.049697000533342,-0.247180506587029,0.031738005578518,0.113398067653179,-0.206612706184387,-0.038404583930969,-0.081458196043968,-0.067171134054661,-0.283478796482086,-0.019868576899171) * MODEL1_texOff(vec2(0,1));
res += mat4(0.127238556742668,0.002874578349292,0.017738882452250,0.048320736736059,-0.032228540629148,0.088565714657307,0.052049078047276,0.033058900386095,-0.042322371155024,0.049351405352354,0.073819458484650,0.039283271878958,-0.094211436808109,0.044979248195887,0.118791110813618,-0.017179146409035) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.049826398491859,-0.159394994378090,-0.106135584414005,-0.044193889945745,0.134933069348335,-0.044591840356588,0.130117639899254,-0.011203866451979,0.092150181531906,-0.169126689434052,0.093850106000900,-0.222990617156029,-0.060934264212847,0.120757602155209,0.158305719494820,0.187674060463905) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.054944276809692,-0.116031333804131,-0.121547877788544,-0.063064187765121,0.044257789850235,-0.049755502492189,0.023372896015644,0.105781935155392,-0.169119283556938,-0.097529307007790,-0.029635414481163,0.093973539769650,0.061483535915613,0.036016013473272,0.171839594841003,-0.259972691535950) * MODEL1_texOff(vec2(1,1));
res += mat4(0.123402699828148,0.078084371984005,0.025004032999277,0.010808071121573,0.086312040686607,0.049901653081179,0.050176329910755,-0.000495938467793,-0.126002520322800,-0.039829991757870,-0.139277592301369,-0.015076990239322,0.045659314841032,0.004265416413546,0.013726645149291,-0.004437857773155) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.078762128949165,-0.087846934795380,-0.039541900157928,-0.088640965521336,-0.034804698079824,-0.264344990253448,0.032166056334972,-0.287941515445709,-0.016888892278075,0.016651015728712,-0.226596385240555,-0.033123891800642,-0.062696538865566,-0.044550810009241,0.147256806492805,-0.147163525223732) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.148725226521492,0.000440806965344,0.039613481611013,-0.082261048257351,-0.061392221599817,0.066123344004154,-0.051404085010290,0.104783438146114,0.142217904329300,-0.088008396327496,-0.012571537867188,0.127358898520470,-0.053286056965590,-0.179582327604294,0.093146234750748,0.108888782560825) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.172574818134308,0.052125271409750,0.020409595221281,0.033168699592352,0.074342675507069,-0.129531845450401,-0.095769114792347,-0.190721467137337,0.026212425902486,-0.122619219124317,0.064434714615345,0.050725132226944,-0.011604940518737,0.115809731185436,-0.019031446427107,-0.071637265384197) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.277095139026642,0.087621435523033,0.101916961371899,-0.121101424098015,0.115651607513428,-0.006736492272466,-0.195927053689957,0.242731794714928,-0.181996986269951,0.063103817403316,0.027721844613552,0.234396666288376,0.025288311764598,0.330797582864761,-0.009160654619336,0.080901011824608) * MODEL2_texOff(vec2(0,0));
res += mat4(0.156945064663887,0.193862825632095,-0.119567207992077,-0.145976379513741,0.225276350975037,-0.130653545260429,-0.076758414506912,0.428342133760452,-0.098837107419968,-0.113315694034100,-0.160410657525063,-0.107440702617168,-0.172204628586769,-0.030000938102603,-0.021011522039771,0.206385523080826) * MODEL2_texOff(vec2(0,1));
res += mat4(0.024093843996525,0.051775518804789,0.013118407689035,0.009553605690598,-0.090243443846703,0.001303027267568,0.036262281239033,0.035786263644695,-0.034697741270065,-0.052983824163675,-0.075199447572231,-0.043760165572166,-0.058794934302568,0.034104619175196,-0.065369144082069,0.046872727572918) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.411435127258301,-0.060481909662485,-0.087256290018559,-0.069562450051308,0.203622043132782,-0.042208079248667,-0.011524389497936,0.026663811877370,-0.021264890208840,-0.132935807108879,-0.013056449592113,-0.028450287878513,0.025144018232822,0.169121429324150,-0.236814424395561,0.164142772555351) * MODEL2_texOff(vec2(1,0));
res += mat4(0.129003509879112,-0.006716123782098,0.103082604706287,-0.222832337021828,0.121421754360199,-0.058617133647203,0.006506047677249,-0.049917917698622,-0.026988981291652,0.057057369500399,0.004069239366800,-0.003982056397945,-0.070718944072723,-0.038694813847542,-0.176784962415695,-0.226021081209183) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.137663811445236,-0.029876079410315,-0.075108177959919,-0.085380375385284,0.129782736301422,0.004851339850575,-0.105211615562439,0.045779809355736,0.121108762919903,0.051369812339544,0.056100033223629,0.135623887181282,0.094824299216270,0.146792948246002,0.111649140715599,0.105476222932339) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.062993943691254,0.005845552310348,-0.093515954911709,-0.140986248850822,-0.072410486638546,-0.000738029775675,-0.053578320890665,-0.090252816677094,-0.029942383989692,0.002413448179141,-0.192356735467911,-0.161836475133896,0.085250876843929,0.097949415445328,0.006988825742155,0.030439959838986) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.171154081821442,-0.049325089901686,0.018060414120555,-0.082365468144417,0.064244300127029,-0.000390751898522,0.099433250725269,-0.105958886444569,-0.036102596670389,-0.340009421110153,0.006071274634451,0.010053021833301,-0.047743428498507,-0.035330757498741,0.036807596683502,0.048106580972672) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.218427851796150,-0.023145154118538,0.106513306498528,-0.026736419647932,-0.075359232723713,-0.015491754747927,-0.108508795499802,-0.153595611453056,0.241181477904320,-0.132293239235878,-0.174037382006645,0.014646252617240,0.311528742313385,-0.129559710621834,0.024166811257601,0.140193611383438) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.171141147613525,-0.029178559780121,0.230784460902214,0.190492823719978,0.262152463197708,-0.101262740790844,-0.250816226005554,-0.018480520695448,-0.115549214184284,0.289208859205246,-0.596962869167328,0.121682822704315,-0.458734959363937,-0.416609466075897,-0.138458877801895,0.109300293028355) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.087568633258343,-0.093070901930332,0.018009360879660,-0.051415640860796,0.004816825501621,0.008040878921747,-0.023327874019742,-0.138408333063126,-0.023319024592638,-0.093695759773254,-0.054497100412846,-0.144735068082809,-0.235074013471603,-0.164667665958405,0.053635761141777,-0.029871970415115) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.116554707288742,-0.097688674926758,-0.038299396634102,0.038418997079134,-0.135119065642357,-0.230130314826965,-0.084370017051697,0.059432908892632,0.048424970358610,0.002235264051706,0.014121451415122,-0.052849721163511,0.276735901832581,0.051833707839251,0.050930012017488,-0.093894585967064) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.048542886972427,-0.142869383096695,0.028434874489903,-0.236918568611145,0.295294165611267,-0.145268589258194,-0.149432986974716,-0.205364793539047,-0.082573287189007,-0.027784992009401,-0.036272455006838,-0.056451622396708,-0.009217884391546,0.135349780321121,0.148954927921295,0.059057872742414) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.060027137398720,-0.185820817947388,-0.167284741997719,-0.061338379979134,-0.012673337943852,-0.038841098546982,0.034364264458418,0.139627739787102,0.052485153079033,-0.094254963099957,-0.046215757727623,-0.030171032994986,0.019572289660573,0.058518800884485,-0.072734370827675,0.027174722403288) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.013213586062193,-0.078213587403297,0.048354919999838,-0.010565109550953,-0.101851366460323,0.070462852716446,0.126319944858551,-0.031921863555908,0.047253295779228,0.050831265747547,-0.081452123820782,-0.065455891191959,-0.040753588080406,-0.040049955248833,-0.043189518153667,-0.001804995699786) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.187363028526306,-0.040827944874763,0.066897049546242,-0.027946760877967,0.073071338236332,0.124623306095600,0.251681655645370,0.043056715279818,-0.075348123908043,0.016521332785487,-0.311089932918549,-0.102485835552216,-0.183410033583641,0.018310245126486,-0.006826778408140,-0.059514738619328) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.056204255670309,-0.079811178147793,-0.111174970865250,-0.044353108853102,0.145492449402809,0.631856560707092,0.219482541084290,-0.017826711758971,-0.060613710433245,-0.072854042053223,-0.039963848888874,-0.174296513199806,-0.014756496064365,-0.012728204019368,0.129241004586220,0.260180890560150) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.126999825239182,-0.038179606199265,-0.075914151966572,-0.016971301287413,-0.006356092635542,0.099525928497314,0.001459061051719,0.045539990067482,0.096763305366039,0.014393621124327,-0.119609065353870,0.123125106096268,-0.177074342966080,0.038178205490112,-0.073697634041309,-0.026499815285206) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.228067845106125,-0.152302220463753,-0.038456004112959,-0.259358614683151,-0.030094755813479,-0.253190279006958,-0.065440729260445,-0.186357855796814,-0.137932807207108,0.156243264675140,-0.261776298284531,-0.317222476005554,-0.038385584950447,0.111187011003494,0.250967592000961,0.195605218410492) * MODEL4_texOff(vec2(0,0));
res += mat4(0.126354292035103,-0.050249159336090,-0.173434630036354,-0.114132165908813,-0.052836790680885,-0.175510883331299,-0.151906028389931,0.227573245763779,0.009972354397178,-0.334318935871124,-0.150179713964462,-0.016650537028909,-0.092977583408356,-0.084030404686928,0.132176965475082,-0.074515417218208) * MODEL4_texOff(vec2(0,1));
res += mat4(0.061555031687021,-0.043164387345314,-0.078848898410797,-0.170721724629402,-0.025280157104135,-0.049373887479305,-0.041364565491676,0.023927766829729,0.136289998888969,0.046047389507294,0.065986149013042,-0.090954698622227,-0.102938517928123,-0.015369521453977,-0.024548785760999,0.104071527719498) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.116116866469383,0.106325462460518,-0.152725368738174,0.104789502918720,0.025261888280511,0.037061605602503,-0.129227980971336,0.030608853325248,-0.036556463688612,0.160898804664612,0.087829194962978,0.145041614770889,0.010518160648644,-0.027890099212527,0.072357982397079,-0.057377252727747) * MODEL4_texOff(vec2(1,0));
res += mat4(0.078811250627041,0.089576393365860,0.053495127707720,0.020730281248689,0.041281398385763,0.028115466237068,-0.087506890296936,0.010684526525438,0.072362862527370,0.212920695543289,0.168528273701668,0.013417690992355,-0.103101901710033,-0.026016814634204,-0.164089694619179,0.053248580545187) * MODEL4_texOff(vec2(1,1));
res += mat4(0.102964408695698,-0.022892439737916,0.068005599081516,-0.041628830134869,-0.033203627914190,-0.110778674483299,0.016442492604256,-0.098578236997128,0.012273261323571,0.039823438972235,-0.132642626762390,-0.024104049429297,0.047663692384958,0.050767224282026,-0.034285534173250,0.058137003332376) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.010995389893651,-0.130654141306877,0.116602599620819,0.084215663373470,0.025430338457227,-0.203367710113525,0.093197546899319,0.054487414658070,-0.045653164386749,0.014121427200735,-0.158197909593582,-0.149574667215347,-0.169652476906776,0.061208352446556,0.092097766697407,-0.061067190021276) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.233373180031776,0.211301103234291,0.051843851804733,-0.062673188745975,-0.074643671512604,-0.087301187217236,-0.012084718793631,0.134031146764755,0.044100146740675,-0.013052676804364,-0.047935064882040,-0.051436092704535,0.034666631370783,0.081468246877193,0.064999915659428,0.161308944225311) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.069441154599190,0.068256340920925,-0.088443830609322,0.035822581499815,0.052567698061466,0.062785185873508,-0.065177448093891,0.086869686841965,-0.059785261750221,-0.027103997766972,0.222734168171883,0.029635278508067,0.138246014714241,0.008933410048485,0.036148592829704,-0.024282351136208) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.000204878364457,-0.019885528832674,-0.206611707806587,-0.162033230066299,-0.027263712137938,-0.271251350641251,-0.414721012115479,-0.242483496665955,0.070614732801914,-0.023079914972186,0.383747011423111,-0.049061965197325,-0.118420310318470,0.068042621016502,-0.168426513671875,0.072473742067814) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.157004565000534,-0.083100862801075,-0.073238663375378,0.191791117191315,-0.239451572299004,-0.057697981595993,-0.049436163157225,-0.041026875376701,-0.019359340891242,0.216517984867096,0.077714800834656,-0.145892530679703,0.033874183893204,-0.059477590024471,-0.119858406484127,-0.184934884309769) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.079110868275166,0.122727975249290,-0.017874516546726,0.067797765135765,0.106154292821884,0.004841652698815,0.024866931140423,-0.009081754833460,0.135406628251076,-0.001687707845122,0.202095165848732,-0.055130261927843,-0.032305225729942,-0.014694533310831,0.023337703198195,-0.042517475783825) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.128892287611961,0.229042768478394,0.069497622549534,0.169827952980995,-0.206366762518883,0.164682358503342,-0.061072435230017,0.027319887652993,-0.168712869286537,0.068239994347095,0.389674812555313,0.055996544659138,-0.218220070004463,0.063737832009792,0.140235126018524,-0.060814343392849) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.073544979095459,0.046524561941624,0.140776202082634,0.058774657547474,-0.072097167372704,0.030046548694372,0.029160883277655,0.041755359619856,0.092854641377926,0.102594070136547,0.221819341182709,-0.096928186714649,0.084836028516293,0.209210500121117,0.065391801297665,-0.020833058282733) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.021313566714525,0.010529360733926,-0.000289704097668,-0.040866941213608,-0.059166163206100,-0.039977226406336,0.008092096075416,-0.008628469891846,-0.018681133165956,0.040961079299450,0.004384230356663,0.038567505776882,0.026660410687327,-0.010596130043268,0.052884653210640,0.055438064038754) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.125169217586517,0.024655822664499,-0.082276560366154,0.105379052460194,-0.079083964228630,-0.100175179541111,0.146070510149002,-0.052243623882532,0.073312081396580,0.135101303458214,0.040268357843161,-0.060724299401045,-0.004556536674500,-0.083020485937595,0.080582454800606,0.154473334550858) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.024837514385581,-0.040904778987169,0.102561347186565,-0.303386300802231,-0.128668099641800,-0.016366215422750,0.020777110010386,-0.092899166047573,-0.000015885583707,0.067731320858002,0.030282266438007,-0.041948672384024,0.143077671527863,0.078691877424717,0.025644093751907,0.144039109349251) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.031860288232565,-0.067201614379883,-0.004865860100836,-0.040862560272217,-0.002192145446315,0.109152846038342,-0.151101022958755,0.088743299245834,0.216969713568687,0.055457867681980,0.154401823878288,-0.042147990316153,0.022769428789616,0.061094760894775,-0.130430892109871,0.118768304586411) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.074812531471252,-0.092071324586868,0.110504150390625,-0.253385603427887,-0.017363930121064,0.122932881116867,-0.123242042958736,-0.113826453685760,-0.337133854627609,-0.113066226243973,0.208382695913315,-0.066651321947575,0.169416204094887,-0.169969335198402,0.018492031842470,0.138827934861183) * MODEL6_texOff(vec2(0,0));
res += mat4(0.335765600204468,0.097535982728004,-0.105564527213573,0.368319183588028,-0.255283474922180,0.019374977797270,-0.086310647428036,-0.287034630775452,0.059510089457035,-0.124781906604767,0.010840700939298,0.068102099001408,-0.053332939743996,-0.008852776139975,-0.018870335072279,-0.150162056088448) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.096876174211502,0.040311839431524,0.012270746752620,-0.023387702181935,-0.065333046019077,-0.027610214427114,0.049079488962889,-0.046426050364971,0.058238912373781,0.010516786947846,-0.107584200799465,-0.074177719652653,0.080894514918327,0.029295595362782,0.106399759650230,0.096157774329185) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.051728658378124,0.023733260110021,-0.113140955567360,-0.063483402132988,0.034954681992531,0.055077921599150,0.243305340409279,-0.027783123776317,0.012566588819027,0.109598308801651,-0.153549760580063,0.162678837776184,0.132592141628265,-0.073653504252434,-0.087257437407970,-0.004894998390228) * MODEL6_texOff(vec2(1,0));
res += mat4(0.116242833435535,0.089309170842171,0.069689013063908,-0.005660782568157,-0.113174363970757,-0.066717095673084,0.049126055091619,0.046769037842751,-0.000678214186337,0.053977731615305,-0.026902481913567,0.000999093870632,-0.001870173378848,0.010920867323875,0.085180006921291,-0.019205421209335) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.025429099798203,-0.005391947459430,-0.064322002232075,0.051306456327438) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.114351347088814,-0.232050731778145,-0.241129323840141,-0.168302997946739);
res += mat4(0.046620808541775,-0.190297320485115,-0.018359215930104,-0.093296356499195,-0.070501908659935,-0.083771340548992,-0.017070993781090,0.061076216399670,0.063613422214985,0.046295195817947,0.070566691458225,0.106907434761524,-0.007047832477838,0.009399077855051,0.042521327733994,-0.096644863486290) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.106674946844578,0.166870117187500,-0.118575565516949,-0.006607964634895,-0.006689322646707,-0.179001301527023,-0.179574713110924,-0.082687884569168,0.256460428237915,-0.010686183348298,0.152706146240234,0.007472151890397,0.088997140526772,0.026520479470491,-0.058242995291948,0.137541159987450) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.010431704111397,-0.075274437665939,-0.033918991684914,-0.126903042197227,-0.043905530124903,0.111998766660690,-0.003879697760567,0.120184019207954,0.148691415786743,0.109440334141254,-0.073422856628895,-0.054902676492929,0.013791366480291,-0.026032811030746,-0.011509871110320,-0.002638500416651) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.085798762738705,-0.190676033496857,-0.024707529693842,0.147850424051285,0.082397498190403,-0.009442240931094,0.033582922071218,0.252774655818939,-0.044776421040297,0.034500684589148,-0.061752852052450,-0.063059128820896,-0.067078515887260,-0.004798704758286,-0.006522965151817,0.037031345069408) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.096752546727657,-0.154468983411789,-0.153095781803131,-0.106401234865189,-0.266425937414169,-0.117050953209400,0.058350339531898,-0.044259019196033,-0.102508313953876,0.179847985506058,0.121228799223900,0.024675134569407,-0.350340038537979,-0.148084878921509,-0.185374081134796,-0.099770978093147) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.093105398118496,-0.094372309744358,-0.162882804870605,-0.132265299558640,-0.031425252556801,-0.037084773182869,-0.109000757336617,-0.059490181505680,-0.204019531607628,-0.041398014873266,0.019409347325563,-0.079230971634388,-0.252113461494446,0.012247233651578,0.155052378773689,0.071377471089363) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.041864037513733,-0.124171346426010,0.066037483513355,0.102780520915985,0.011514160782099,0.113579101860523,0.032295074313879,0.133625090122223,0.064526468515396,0.040254339575768,0.014954951591790,0.062269438058138,0.136023089289665,0.182958111166954,-0.136619552969933,0.026768704876304) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.536036550998688,0.168414801359177,-0.162772670388222,-0.093850374221802,0.025040894746780,0.094868183135986,-0.120023995637894,0.030259246006608,0.132649675011635,-0.176959708333015,-0.171338632702827,-0.139776021242142,0.434324651956558,-0.037069089710712,0.073552392423153,-0.080769158899784) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.244572535157204,-0.124569348990917,0.162194713950157,0.013661414384842,0.020288888365030,-0.034865312278271,0.056373041123152,0.085631161928177,-0.106151409447193,-0.030698897317052,-0.035796094685793,0.076689161360264,0.237877249717712,-0.171383738517761,0.026710035279393,-0.009879564866424) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.004789837636054,0.034600604325533,-0.027796179056168,0.049513898789883,0.052288938313723,-0.001915166387334,0.036398932337761,0.049777813255787,-0.088357664644718,0.028865417465568,-0.115933895111084,-0.033386696130037,-0.035685334354639,-0.018651884049177,-0.009120236150920,-0.146208405494690) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.078837722539902,-0.137953802943230,0.021654579788446,0.065555363893509,0.082853935658932,0.110116817057133,0.039562370628119,-0.011798751540482,-0.179803803563118,0.050731301307678,0.027664840221405,0.058909539133310,-0.011708809062839,-0.040140744298697,-0.035477716475725,-0.002117683645338) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.062718801200390,-0.003162918845192,0.012404146604240,-0.059847369790077,0.040421281009912,0.218483567237854,0.018586557358503,0.132947891950607,-0.005139368586242,0.036632761359215,-0.102220617234707,0.108213566243649,-0.014155530370772,-0.184260651469231,-0.083317004144192,-0.172582879662514) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.066481098532677,0.116115979850292,-0.188959121704102,0.001850498025306,-0.060473743826151,-0.335742950439453,-0.109827637672424,0.026731727644801,0.044674348086119,0.211744055151939,0.103692464530468,-0.304811298847198,-0.041758421808481,-0.148976892232895,-0.061466667801142,-0.085996873676777) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.134616583585739,-0.097185179591179,-0.032727472484112,0.033300753682852,-0.108072340488434,0.127993568778038,-0.068767488002777,-0.120031967759132,0.130199253559113,0.149822041392326,-0.125362485647202,0.383311122655869,0.047519091516733,0.031867250800133,-0.121594384312630,-0.103202298283577) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.203055948019028,-0.089830040931702,0.002496160799637,-0.041320905089378,-0.114448152482510,0.196168258786201,-0.121702313423157,0.176048174500465,-0.133146792650223,0.162535160779953,-0.045666612684727,0.298053175210953,0.070410303771496,0.095252186059952,0.057967673987150,-0.072737976908684) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.020581211894751,-0.084380485117435,0.125329434871674,-0.074684999883175,-0.002104647457600,0.081385932862759,-0.032059196382761,0.086867950856686,-0.140929937362671,-0.086910113692284,-0.162675663828850,-0.185349211096764,0.141366392374039,-0.063140429556370,-0.062112685292959,0.090713620185852) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.242593973875046,-0.008066308684647,-0.295054525136948,0.085253238677979,-0.058786593377590,0.085741579532623,-0.008475305512547,0.036507949233055,-0.125955805182457,-0.042737379670143,-0.020603010430932,0.008313140831888,0.123866140842438,-0.126370206475258,-0.012436303310096,-0.155106291174889) * MODEL2_texOff(vec2(1,0));
res += mat4(0.291705548763275,0.069026499986649,-0.063600227236748,-0.022981466725469,-0.100962884724140,-0.104489721357822,-0.100967302918434,0.060710299760103,0.011302390135825,0.094039998948574,0.011933255940676,0.062318477779627,-0.021711824461818,-0.055320188403130,-0.026487581431866,-0.107130281627178) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.204515025019646,-0.076993890106678,0.051000677049160,-0.120520882308483,-0.058294456452131,0.064494252204895,-0.057042110711336,-0.117098726332188,-0.000238656270085,0.062491230666637,-0.072658345103264,0.226676598191261,0.112901985645294,0.160914704203606,-0.125942930579185,0.132654339075089) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.083768285810947,-0.011772469617426,0.255506008863449,-0.088244788348675,-0.031281273812056,0.102921366691589,0.077566906809807,0.117927372455597,-0.235433608293533,0.031310249119997,-0.091083899140358,-0.089140020310879,-0.055560592561960,-0.021145088598132,0.098773077130318,0.020129339769483) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.054917108267546,-0.186405882239342,-0.000907828100026,0.035906381905079,0.003227752866223,0.252221971750259,-0.060478143393993,0.036134067922831,0.094148226082325,-0.126780301332474,0.149569571018219,0.108457922935486,0.009407596662641,0.053790502250195,0.165722563862801,0.091592811048031) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.233897700905800,0.037597220391035,0.134544223546982,0.127146229147911,-0.116846323013306,-0.041045226156712,-0.054936997592449,0.095461763441563,0.001595978625119,-0.139190584421158,-0.055826094001532,0.023481538519263,-0.019715646281838,0.153083771467209,0.137845173478127,-0.087950281798840) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.234484732151031,-0.215037584304810,0.285840451717377,-0.157690048217773,-0.244251146912575,0.174622759222984,-0.146399781107903,0.068108558654785,0.074929848313332,0.135790005326271,0.091770462691784,0.109443448483944,0.077024415135384,-0.060314364731312,-0.318464666604996,0.249571591615677) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.035733990371227,0.082595594227314,0.134971618652344,0.084861896932125,-0.032541438937187,0.328060239553452,0.062923371791840,-0.034424606710672,0.073364928364754,-0.002398152370006,-0.285113543272018,-0.119400896131992,0.077754490077496,0.266185790300369,-0.249516472220421,-0.171593934297562) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.089071288704872,0.074962563812733,0.032678551971912,0.020255655050278,-0.108997486531734,0.258291602134705,-0.092006631195545,0.296263217926025,-0.030031446367502,-0.087433427572250,-0.013365914113820,0.035118352621794,0.083045594394207,-0.387315720319748,-0.001415461185388,-0.062637537717819) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.174862042069435,-0.247228875756264,-0.043735705316067,-0.163198947906494,-0.085677951574326,-0.086504526436329,0.015111805871129,-0.125710114836693,-0.053167104721069,0.046093266457319,-0.029385782778263,-0.147307440638542,0.191637396812439,-0.103123053908348,0.157355427742004,-0.074163809418678) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.300002336502075,0.140985950827599,0.152933478355408,0.015951026231050,-0.024284627288580,0.203975215554237,-0.021972678601742,0.100178435444832,-0.203693524003029,-0.018405701965094,-0.119138799607754,-0.035027727484703,-0.076013490557671,-0.110594876110554,-0.044263895601034,-0.125933378934860) * MODEL3_texOff(vec2(1,1));
res += mat4(0.072553925216198,-0.039510663598776,-0.056254889816046,-0.136016994714737,0.144041791558266,0.068417266011238,0.004089503083378,0.018626216799021,-0.016047732904553,0.143066152930260,-0.115200512111187,0.049796931445599,-0.109283395111561,-0.063556730747223,0.126967892050743,-0.156147465109825) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.030381919816136,-0.072732843458652,-0.194471567869186,0.097358010709286,0.170078560709953,-0.191944643855095,0.208561331033707,-0.108136549592018,-0.081456296145916,-0.062667556107044,-0.030832704156637,-0.099706739187241,0.056229587644339,0.146246954798698,0.359952390193939,-0.021977541968226) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.100085251033306,-0.145655885338783,0.028394889086485,0.016203809529543,0.149051457643509,0.015866387635469,-0.081500895321369,0.092166952788830,-0.004881275352091,0.028043229132891,-0.081024862825871,-0.045694638043642,-0.025025324895978,-0.044654753059149,0.019666055217385,-0.119594976305962) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.086931310594082,-0.061500113457441,0.125330299139023,-0.234121888875961,-0.051877852529287,0.048352602869272,-0.011971791274846,0.033576056361198,-0.161697164177895,0.134647130966187,-0.045107718557119,0.163061812520027,0.029533771798015,-0.083251163363457,-0.030311187729239,-0.108041852712631) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.113082289695740,0.043851532042027,0.210180819034576,0.147095546126366,-0.153571307659149,-0.147709921002388,-0.172406554222107,-0.068608619272709,-0.235979959368706,-0.100497327744961,0.044711187481880,-0.212736308574677,0.318454712629318,0.167272821068764,0.269879817962646,0.038768921047449) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.040135975927114,-0.267271280288696,-0.022869113832712,0.128476753830910,0.032768100500107,0.187057241797447,0.075549490749836,0.092055439949036,-0.148931860923767,0.196622386574745,-0.023223685100675,-0.050938859581947,-0.033895399421453,-0.101782321929932,0.221391141414642,0.042829312384129) * MODEL4_texOff(vec2(0,1));
res += mat4(0.002883648965508,-0.128980875015259,-0.125621721148491,-0.157825857400894,-0.017655104398727,-0.009232108481228,0.007432046812028,0.043674025684595,0.091650336980820,0.181088849902153,0.124178826808929,0.013983481563628,-0.096325173974037,0.045414462685585,-0.042429096996784,0.038545034825802) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.025421954691410,0.076491683721542,0.050904065370560,0.157436564564705,-0.159971579909325,0.064148560166359,0.056048072874546,-0.014773471280932,0.361417323350906,-0.140087127685547,0.289393723011017,0.025900967419147,-0.165271893143654,-0.156048044562340,-0.159335374832153,-0.141028910875320) * MODEL4_texOff(vec2(1,0));
res += mat4(0.230055406689644,-0.213188961148262,0.068491123616695,0.104707576334476,0.023009054362774,-0.001903314609081,0.080404601991177,0.008437723852694,0.230046495795250,0.248787343502045,-0.099851928651333,0.078348919749260,-0.238090872764587,-0.075197637081146,0.146147608757019,-0.142391413450241) * MODEL4_texOff(vec2(1,1));
res += mat4(0.104101262986660,-0.018011543899775,0.052518442273140,-0.092018067836761,-0.056501787155867,0.013470113277435,0.068283259868622,-0.091654881834984,-0.115437000989914,0.099686712026596,-0.060234416276217,-0.014665345661342,0.015607743524015,0.041506305336952,0.026036255061626,-0.079669944941998) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.248157694935799,-0.163068905472755,-0.052979517728090,-0.071238867938519,0.045137785375118,0.034856822341681,-0.008463600650430,0.012984787113965,-0.120717182755470,-0.010709408670664,0.012427582405508,0.006400424987078,0.214769795536995,-0.128295242786407,0.104692928493023,0.055973980575800) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.121019653975964,0.040025677531958,-0.048194292932749,-0.251279920339584,0.008816280402243,0.016081379726529,-0.120504759252071,-0.056059263646603,-0.087828591465950,-0.034356668591499,0.085975877940655,-0.000859415624291,0.107616417109966,0.022540763020515,0.007933286949992,-0.077426664531231) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.171636119484901,-0.077170774340630,-0.093665726482868,0.071953125298023,0.075684435665607,-0.033409990370274,0.021388970315456,0.002235869411379,0.233098179101944,-0.021385423839092,0.195654124021530,0.084520936012268,0.016681628301740,0.000453469227068,0.036639370024204,-0.149261325597763) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.367169409990311,-0.237326934933662,-0.047453608363867,-0.096069179475307,0.001478524529375,-0.213972240686417,-0.040691610425711,0.126373052597046,0.215675771236420,-0.059955582022667,-0.054374895989895,-0.080338142812252,-0.296909183263779,-0.023054577410221,-0.382922291755676,0.161602362990379) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.267108798027039,0.067738547921181,-0.026254002004862,-0.333628386259079,0.008490001782775,0.007671026978642,-0.001708985306323,-0.092057988047600,0.179050698876381,0.038554262369871,-0.168952286243439,-0.022365404292941,-0.084641210734844,-0.309155613183975,0.154513165354729,0.004543275572360) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.019676385447383,-0.110259935259819,-0.029018040746450,-0.253593027591705,0.084732607007027,-0.049579501152039,-0.025825435295701,-0.196476057171822,0.337209135293961,-0.108179517090321,0.096454724669456,-0.063448801636696,-0.016753433272243,-0.144627630710602,-0.042178999632597,-0.202489808201790) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.011181588284671,0.037370566278696,0.013813735917211,-0.041215624660254,-0.155376031994820,0.142081543803215,0.077043712139130,0.060310810804367,0.375361055135727,-0.044263880699873,-0.164132982492447,-0.035304088145494,0.274330079555511,0.080073788762093,0.044049069285393,0.076833665370941) * MODEL5_texOff(vec2(1,0));
res += mat4(0.143791571259499,-0.006360782310367,0.004807271994650,-0.138599291443825,-0.028338056057692,0.047399111092091,0.072422489523888,0.001658981200308,0.203257232904434,-0.072288632392883,0.135971263051033,-0.073696799576283,0.103246666491032,0.054755352437496,-0.183592900633812,0.014562090858817) * MODEL5_texOff(vec2(1,1));
res += mat4(0.007522606290877,-0.040942627936602,-0.015958832576871,-0.011930759996176,-0.047454360872507,-0.009772590361536,0.032197017222643,-0.049947459250689,-0.061954665929079,0.069684177637100,-0.045252513140440,0.047227356582880,0.076195299625397,0.026386652141809,-0.036247890442610,0.008471189998090) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.117338843643665,0.113503932952881,-0.076322712004185,-0.015831494703889,-0.022611923515797,0.024524455890059,0.020991554483771,-0.138730153441429,-0.026328537613153,-0.205070629715919,0.050082359462976,-0.021439788863063,0.097581297159195,0.063843749463558,-0.009112268686295,0.096373461186886) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.086952291429043,0.085858650505543,-0.051937770098448,0.152289062738419,-0.004274018574506,0.010511020198464,0.124469488859177,-0.044309124350548,-0.006761876400560,0.040907796472311,0.030278116464615,-0.015099796466529,-0.013478195294738,-0.052995100617409,-0.021170705556870,0.028376653790474) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.021891038864851,-0.030251462012529,-0.030730450525880,0.102495074272156,-0.110930308699608,0.052645340561867,-0.028843032196164,-0.097004204988480,0.133695870637894,0.080032743513584,0.150657355785370,-0.269743323326111,-0.123561263084412,0.116715557873249,0.090237803757191,0.132383331656456) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.147249996662140,-0.041697546839714,0.079010657966137,-0.342269510030746,-0.055682625621557,0.076730214059353,0.012638662010431,0.028366874903440,0.151312708854675,-0.124940462410450,-0.056701160967350,0.394961446523666,-0.093554854393005,-0.010164638049901,-0.155582129955292,0.013630008324981) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.126951202750206,0.053875781595707,0.212502747774124,0.032454859465361,0.085134118795395,0.127490445971489,0.134444177150726,-0.306418299674988,-0.006007696967572,0.029546979814768,-0.073075518012047,-0.097274594008923,0.026211386546493,-0.238563790917397,-0.039874628186226,0.107988938689232) * MODEL6_texOff(vec2(0,1));
res += mat4(0.027053240686655,0.129924103617668,0.041031174361706,0.053851619362831,0.120776683092117,-0.071916446089745,0.009792528115213,0.070274449884892,-0.034257020801306,-0.174153462052345,-0.024089710786939,-0.160922095179558,0.110306173563004,0.086993411183357,0.132029190659523,0.061830446124077) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.045840632170439,0.084837943315506,0.015785159543157,-0.215764611959457,0.297445714473724,0.022973330691457,0.076041229069233,-0.068666316568851,0.011994251050055,0.070187173783779,0.137460604310036,0.202169641852379,-0.191845148801804,0.030596420168877,-0.011985758319497,0.151447370648384) * MODEL6_texOff(vec2(1,0));
res += mat4(0.097204938530922,-0.181292235851288,-0.007634069304913,0.131359770894051,-0.000367400381947,-0.111595869064331,-0.002239641034976,-0.064637400209904,-0.016781497746706,0.008342020213604,0.007145785260946,-0.005636487621814,0.089889608323574,-0.018579777330160,-0.077339202165604,0.140071555972099) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.046469844877720,-0.004563102964312,0.027520958334208,0.016487812623382) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.274630486965179,-0.168785467743874,-0.226590558886528,-0.198207482695580);
res += mat4(-0.125111594796181,-0.072095394134521,-0.083375647664070,-0.038011822849512,-0.084648087620735,-0.345847785472870,-0.003832304384559,-0.047548409551382,0.126532077789307,0.064067855477333,0.035597793757915,0.094894215464592,0.003692771773785,-0.020288858562708,-0.086362309753895,-0.106612898409367) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.125008031725883,0.102880120277405,-0.102809108793736,0.000036390512832,0.038458883762360,-0.079074822366238,-0.086799181997776,-0.235659047961235,-0.059554006904364,0.036534000188112,0.020418722182512,0.195619165897369,-0.074825242161751,0.025931535288692,0.062742292881012,0.143046930432320) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.018004003912210,-0.101735673844814,0.069844409823418,0.013906458392739,-0.086217924952507,0.027724625542760,0.023455178365111,-0.070768080651760,-0.031823020428419,-0.006809745449573,0.051062189042568,0.018624993041158,-0.070372901856899,-0.016248105093837,0.110723398625851,0.024920204654336) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.003038336290047,-0.031363457441330,0.161634042859077,0.050092838704586,0.178337529301643,0.008876590058208,0.267975777387619,0.046481955796480,0.070506796240807,0.251504421234131,-0.057848297059536,-0.000967425003182,0.024875922128558,-0.123273499310017,0.031549476087093,0.071019016206264) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.410713076591492,0.062748134136200,-0.120192371308804,0.145116791129112,-0.279810279607773,-0.005781684536487,-0.670719265937805,0.108262225985527,0.148316219449043,-0.209499046206474,-0.121284604072571,0.097616180777550,0.140862166881561,0.147499114274979,0.016127606853843,-0.311693608760834) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.157438009977341,0.084335021674633,0.159336149692535,-0.166780799627304,0.052438180893660,-0.069843523204327,-0.045081403106451,-0.092885710299015,-0.100367091596127,-0.041034340858459,-0.123605139553547,0.012932629324496,0.047611225396395,-0.076452009379864,-0.147020787000656,0.122647814452648) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.034219976514578,0.003784771077335,0.115592777729034,-0.013593113049865,-0.058456163853407,0.079817876219749,0.048771791160107,0.042173609137535,-0.032653786242008,-0.046324040740728,0.036149814724922,0.041537441313267,-0.127140790224075,0.133789569139481,0.098901420831680,-0.045895148068666) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.021050997078419,0.056298855692148,0.055419284850359,-0.215457990765572,0.081884339451790,0.015791008248925,0.051094982773066,0.050286203622818,0.020125050097704,0.094955503940582,0.050698835402727,0.066267758607864,0.379507660865784,-0.104356616735458,-0.029263949021697,0.251850217580795) * MODEL1_texOff(vec2(1,0));
res += mat4(0.092139095067978,0.053729832172394,-0.017614733427763,0.150694519281387,-0.011635168455541,-0.034518826752901,-0.000896761077456,0.066638685762882,-0.054508123546839,-0.048060741275549,-0.018056314438581,-0.012923073954880,0.006040760781616,0.026916714385152,-0.022920491173863,-0.083989582955837) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.042392875999212,0.201788514852524,0.049923416227102,0.029149498790503,0.057876411825418,0.070124693214893,0.006192845758051,-0.109290033578873,-0.118786431849003,0.067153938114643,-0.053938318043947,0.088737651705742,-0.037540812045336,-0.054768256843090,-0.114215299487114,-0.102196075022221) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.080670036375523,-0.010453369468451,-0.008380767889321,-0.184694901108742,-0.036552462726831,0.068012729287148,0.026232562959194,-0.002869577147067,0.073838621377945,-0.297928035259247,-0.116894342005253,-0.034444641321898,-0.036898650228977,-0.053832065314054,-0.045797761529684,-0.017161661759019) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.106353707611561,-0.015940813347697,0.047843981534243,-0.039567206054926,-0.001967990305275,-0.148646950721741,-0.141538441181183,0.034835696220398,-0.088438726961613,0.146233960986137,-0.012606172822416,0.055947516113520,-0.092328920960426,0.021468656137586,0.023585559800267,0.094253279268742) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.087465941905975,0.449825048446655,0.015875102952123,-0.108114913105965,-0.048869255930185,0.265863597393036,0.196483194828033,0.019262783229351,0.144280344247818,-0.203315392136574,-0.215523153543472,-0.024509042501450,-0.028281155973673,-0.222988128662109,-0.026165733113885,-0.070761851966381) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.103096418082714,0.277624875307083,0.202787443995476,0.009181979112327,-0.130449593067169,0.118566222488880,0.119372837245464,-0.089154839515686,-0.183428496122360,-0.038188271224499,-0.006332157645375,0.365892261266708,0.070565655827522,0.158420339226723,-0.107301056385040,-0.056195735931396) * MODEL2_texOff(vec2(0,0));
res += mat4(0.053876202553511,0.041299764066935,0.040467809885740,-0.134986311197281,-0.012298614718020,-0.165412157773972,-0.042443137615919,-0.022527648136020,0.001375734922476,-0.020806422457099,-0.014937442727387,0.113066658377647,-0.006516228429973,-0.048813130706549,-0.083806388080120,0.268023878335953) * MODEL2_texOff(vec2(0,1));
res += mat4(0.028218507766724,-0.022852953523397,-0.050849590450525,-0.010282384231687,-0.007488727103919,-0.079727508127689,-0.044425789266825,0.026904901489615,-0.020304132252932,0.066754825413227,-0.175452277064323,0.061195373535156,-0.137914955615997,-0.088005587458611,0.054266437888145,0.138595089316368) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.076018087565899,0.029573760926723,0.023647103458643,-0.221608638763428,-0.079874664545059,-0.005246337037534,0.018156886100769,-0.016888892278075,0.075848288834095,-0.040076434612274,-0.136687234044075,0.047086063772440,0.116942673921585,-0.022742759436369,-0.110737927258015,0.111913666129112) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.159214526414871,0.055603165179491,0.159235924482346,-0.070650085806847,-0.078547768294811,-0.045211046934128,-0.013969417661428,-0.028394885361195,-0.042214673012495,-0.061064146459103,-0.108370333909988,0.021604798734188,-0.143982827663422,0.021110804751515,0.029865119606256,-0.090631470084190) * MODEL2_texOff(vec2(1,1));
res += mat4(0.135865062475204,-0.137657761573792,0.012113335542381,-0.204010620713234,-0.124393656849861,0.093065656721592,0.048438258469105,-0.183341756463051,-0.136649698019028,-0.136907115578651,0.072087652981281,0.162944987416267,0.017943099141121,-0.317091614007950,0.166303038597107,0.230201959609985) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.205116301774979,-0.119287230074406,-0.038635149598122,-0.146780833601952,-0.054126631468534,-0.033821210265160,0.196803122758865,0.092860430479050,0.203989490866661,0.148343712091446,0.100580073893070,-0.188520208001137,0.298955053091049,0.107511572539806,0.028512710705400,-0.010553826577961) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.106609404087067,-0.014363165944815,-0.013275879435241,-0.011119835078716,-0.015576714649796,0.137710541486740,0.031632639467716,-0.102926544845104,0.046954959630966,0.011938400566578,-0.048991151154041,0.084052070975304,0.122298851609230,-0.122101813554764,-0.129669398069382,0.077045239508152) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.234103634953499,0.067970536649227,0.071889527142048,0.129038766026497,-0.045370679348707,0.053350768983364,-0.106319904327393,0.025114320218563,-0.012400158680975,0.066761828958988,0.085706867277622,0.054622981697321,-0.188144251704216,-0.253927469253540,0.217905759811401,-0.092159099876881) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.164857834577560,0.097919113934040,0.259023040533066,-0.043717268854380,-0.052724491804838,0.156325176358223,0.059910539537668,-0.190322756767273,0.234188690781593,-0.065043263137341,-0.152241840958595,-0.110482610762119,-0.375631093978882,0.095602110028267,-0.201958552002907,-0.226492896676064) * MODEL3_texOff(vec2(0,0));
res += mat4(0.143622621893883,-0.159804433584213,-0.174408048391342,-0.039706178009510,-0.014691267162561,-0.082564532756805,-0.050923857837915,0.147113829851151,-0.090090937912464,0.051972240209579,0.147049367427826,-0.082074478268623,0.025830207392573,0.011165475472808,-0.021174626424909,-0.036279477179050) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.043803147971630,-0.047106780111790,-0.106865182518959,-0.200774446129799,-0.049304611980915,-0.012962553650141,0.128807842731476,-0.071185953915119,-0.061920739710331,0.046653877943754,-0.074010729789734,-0.033194478601217,0.186495944857597,-0.065389417111874,-0.047912552952766,0.051437467336655) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.002879280596972,-0.019375894218683,0.038678854703903,-0.140907958149910,-0.117077298462391,0.107155621051788,-0.044824764132500,0.089397944509983,-0.016600051894784,0.034325379878283,0.113576605916023,-0.182636305689812,-0.064262360334396,0.046088576316833,0.097008727490902,0.027896154671907) * MODEL3_texOff(vec2(1,0));
res += mat4(0.177318602800369,-0.043262049555779,0.060469318181276,-0.041125327348709,0.004897504579276,0.036847289651632,0.160240307450294,-0.201495558023453,-0.147997230291367,-0.080433532595634,0.050646025687456,0.035362049937248,-0.127521678805351,-0.043044243007898,0.054524708539248,0.021937219426036) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.024837117642164,0.065933570265770,0.016015211120248,-0.057078514248133,0.141983389854431,0.165511935949326,0.053823702037334,-0.048246551305056,-0.005281400866807,0.036872386932373,0.031384229660034,-0.036777909845114,0.194709718227386,0.168976888060570,0.055130027234554,-0.079552359879017) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.105847507715225,0.003150944132358,0.079347416758537,-0.108101800084114,-0.161200106143951,-0.126600518822670,0.085483677685261,0.112026631832123,-0.061255659908056,-0.013129692524672,-0.015693064779043,-0.093763589859009,0.059343323111534,-0.158106118440628,0.066862694919109,0.132889688014984) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.074839204549789,-0.060513544827700,-0.056056372821331,-0.129156619310379,0.099288381636143,0.043733894824982,-0.072363525629044,-0.088067308068275,-0.076618507504463,-0.025565465912223,-0.074995733797550,-0.020586235448718,-0.118705682456493,0.124799229204655,0.142207980155945,-0.007890871725976) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.066694110631943,0.105488866567612,-0.139787167310715,-0.146234080195427,-0.046194665133953,0.010505478829145,0.059601534157991,0.072476796805859,-0.309846878051758,0.050797332078218,0.093602694571018,-0.024518815800548,0.241386249661446,-0.098093360662460,-0.136201977729797,0.130556762218475) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.310366004705429,-0.080914601683617,0.122439213097095,-0.180889889597893,-0.186264932155609,0.059195030480623,0.062336415052414,-0.462849617004395,0.302273988723755,-0.076033160090446,-0.150386288762093,-0.357422858476639,-0.087732791900635,0.132135480642319,0.246070951223373,0.142094969749451) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.090709812939167,0.183296218514442,0.207742512226105,-0.176190495491028,0.148976936936378,-0.074659243226051,-0.078362196683884,0.174273967742920,-0.108279801905155,-0.000845922273584,0.021499469876289,0.049332622438669,0.226105377078056,0.001685714232735,0.008534247986972,0.087859645485878) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.058551616966724,0.076787851750851,0.013737193308771,-0.052717812359333,-0.000933799776249,0.001329682767391,0.039801742881536,0.051322791725397,0.316813558340073,-0.061538320034742,-0.050214119255543,-0.090058684349060,-0.050602048635483,0.062285035848618,0.043029502034187,0.077792882919312) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.110864996910095,0.004124261904508,-0.054283495992422,-0.047858033329248,0.100577779114246,-0.026714475825429,-0.030400730669498,-0.015166792087257,-0.017854170873761,-0.061089053750038,0.027573132887483,0.247605189681053,0.035678341984749,0.029532779008150,-0.082664258778095,0.058579850941896) * MODEL4_texOff(vec2(1,0));
res += mat4(0.094219364225864,0.083780907094479,0.045767955482006,0.010544610209763,-0.017365884035826,0.010219019837677,0.018117167055607,-0.018954781815410,0.008946604095399,0.070733152329922,0.015682032331824,-0.082064144313335,0.161807298660278,-0.001611059182324,0.060146760195494,0.043364051729441) * MODEL4_texOff(vec2(1,1));
res += mat4(0.000679666642100,-0.086502984166145,0.007536286953837,-0.146245300769806,0.065056920051575,-0.133680850267410,-0.123778879642487,-0.095132462680340,-0.021538622677326,-0.050059914588928,0.007301673758775,-0.023997267708182,0.004780990537256,0.069547936320305,-0.055302631109953,0.076955117285252) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.060701318085194,-0.020436884835362,0.065014608204365,0.211660891771317,-0.057380948215723,0.056800022721291,-0.027612254023552,0.221745997667313,0.173820972442627,0.085876770317554,-0.034233652055264,-0.117983065545559,0.012395077385008,0.184217989444733,0.106081753969193,-0.001387500436977) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.040277566760778,0.156629964709282,-0.159413874149323,-0.008935824036598,-0.033030390739441,0.045844368636608,0.085569255053997,0.027268925681710,-0.000953980779741,-0.025461001321673,-0.039872281253338,-0.013882504776120,0.033741280436516,0.034666731953621,0.084558494389057,0.117788456380367) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.047007139772177,-0.121480211615562,0.005461242981255,0.093103893101215,-0.089370690286160,-0.232847809791565,0.014324435032904,0.053102850914001,0.054039925336838,-0.111700080335140,-0.005044123157859,0.010201970115304,0.013610054738820,-0.111292518675327,-0.190784826874733,-0.096834361553192) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.158540517091751,0.004481354262680,0.009134045802057,0.035831164568663,0.016288498416543,0.010894366540015,-0.387157171964645,-0.269083350896835,-0.203528121113777,0.081325151026249,0.021178660914302,-0.008592909201980,-0.307264864444733,0.349080592393875,0.412561029195786,0.179944172501564) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.039537940174341,0.183137819170952,-0.032186549156904,0.129886731505394,-0.042374450713396,0.199259564280510,0.090426839888096,-0.074983142316341,-0.056226480752230,-0.007095786277205,0.050684228539467,-0.102151535451412,0.084717154502869,0.319454729557037,0.120968781411648,-0.098206907510757) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.054248861968517,0.076354712247849,-0.034955669194460,0.153900250792503,0.006768452469260,-0.027053005993366,-0.026162441819906,-0.060662157833576,-0.243495240807533,-0.129510626196861,-0.200579836964607,-0.080631509423256,0.024847477674484,0.041248783469200,-0.090531282126904,0.002182738156989) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.053043279796839,-0.036837112158537,-0.052144270390272,0.082143165171146,0.076312810182571,0.127002894878387,0.024562012404203,-0.100809693336487,0.089411050081253,-0.016289137303829,-0.031553536653519,0.052374646067619,-0.023193782195449,0.054124750196934,0.063571661710739,-0.083038747310638) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.046795118600130,0.089057773351669,0.045232065021992,-0.065636679530144,0.099832788109779,-0.020199820399284,-0.105713807046413,0.144584909081459,0.110577262938023,0.054736502468586,-0.032968696206808,-0.068680666387081,-0.086691766977310,0.199748620390892,0.065915212035179,0.023776190355420) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.049940932542086,-0.003082975512370,-0.051246993243694,0.027181908488274,0.170194625854492,-0.010684694163501,-0.205829054117203,-0.081530824303627,0.010484806261957,-0.063938967883587,-0.052815504372120,0.046717692166567,-0.005898082163185,-0.096499301493168,0.037344809621572,0.005815095733851) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.014139790087938,-0.032330412417650,0.082494869828224,-0.006816856563091,0.070641592144966,0.140329167246819,-0.026297440752387,-0.164526060223579,0.008636884391308,0.130626738071442,0.031534470617771,-0.146757304668427,-0.083919107913971,-0.165777206420898,-0.064870931208134,0.246088981628418) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.025842493399978,0.171128123998642,-0.069541774690151,0.115349933505058,0.028778165578842,-0.094152942299843,0.038417734205723,-0.096681974828243,0.053263347595930,-0.019763100892305,-0.048428550362587,-0.034856818616390,0.051986277103424,0.072681590914726,0.029035555198789,0.069435723125935) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.111913189291954,0.023136692121625,0.080806978046894,0.074408300220966,0.048144165426493,0.220425859093666,0.000094928138424,-0.042080480605364,0.109151668846607,-0.179262891411781,-0.320527315139771,-0.184052556753159,0.156797230243683,-0.313217103481293,-0.026183744892478,0.217607557773590) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.161612838506699,-0.077193491160870,0.044966775923967,-0.216119155287743,0.343975543975830,0.045647982507944,-0.348495066165924,0.137102782726288,-0.213615909218788,0.315197259187698,0.273523986339569,0.178022459149361,0.157367482781410,-0.331721663475037,-0.039962492883205,0.401744157075882) * MODEL6_texOff(vec2(0,0));
res += mat4(0.017331946641207,0.104699917137623,-0.018231468275189,-0.192862495779991,0.088029861450195,-0.121390841901302,0.100861169397831,0.072230815887451,-0.008754928596318,-0.094887875020504,0.026592360809445,0.100796952843666,-0.106480434536934,0.126948818564415,0.040217746049166,-0.152757674455643) * MODEL6_texOff(vec2(0,1));
res += mat4(0.002631163923070,0.083483330905437,0.038156107068062,-0.130171954631805,-0.018241334706545,-0.076724678277969,0.060486413538456,-0.033985540270805,0.097859650850296,-0.092599168419838,-0.101686790585518,0.090240344405174,-0.048079401254654,-0.176308155059814,0.005162473302335,0.158031880855560) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.041602358222008,-0.009714541956782,-0.144437700510025,0.050049643963575,-0.041650611907244,0.047224171459675,0.064163096249104,0.043547954410315,0.074458889663219,0.043846677988768,-0.069333218038082,0.073129810392857,0.047799061983824,-0.056728959083557,0.241798937320709,-0.230324849486351) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.040003862231970,0.002382644219324,0.009797416627407,0.038559783250093,0.107894495129585,-0.014641576446593,0.038411557674408,0.024159437045455,-0.009394753724337,0.087572924792767,0.120422743260860,-0.091263234615326,-0.020388970151544,-0.098797135055065,-0.108103156089783,0.144066795706749) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.051876716315746,0.185891076922417,0.021409979090095,0.044337097555399) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.241092622280121,-0.074018888175488,-0.284529775381088,0.021038359031081);
res += mat4(-0.008556639775634,-0.084565699100494,-0.001392880105413,-0.032235387712717,0.113499954342842,0.127813011407852,0.045858882367611,-0.061697531491518,-0.011276358738542,0.004452613182366,-0.010460736230016,0.015281913802028,-0.076253913342953,0.072113417088985,-0.030365470796824,0.041170056909323) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.094782352447510,-0.055984262377024,-0.082543857395649,0.053397428244352,0.087605670094490,-0.125884279608727,0.001638156943955,0.021445019170642,-0.189525410532951,0.111688345670700,0.078262731432915,-0.129544600844383,-0.076284214854240,0.061675421893597,0.070121027529240,0.070270128548145) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.056213121861219,-0.122782319784164,-0.013024349696934,0.072449959814548,-0.028752986341715,-0.020016072317958,-0.029840113595128,-0.026999227702618,-0.078622289001942,-0.010144160129130,-0.039127331227064,0.158964589238167,-0.071648500859737,0.101432636380196,0.025404250249267,0.022714909166098) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.217448249459267,0.022028651088476,-0.006574043072760,-0.084307461977005,-0.002439511474222,-0.006719516124576,0.051140151917934,-0.186267316341400,-0.028125401586294,0.152341529726982,0.040583148598671,0.182470813393593,0.028725253418088,0.148880288004875,-0.066533833742142,-0.192832827568054) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.444626659154892,-0.038232866674662,0.051111157983541,0.006302045192569,-0.298621326684952,0.242767572402954,-0.248165428638458,0.103933319449425,-0.102018356323242,0.088981218636036,-0.122699871659279,-0.047882646322250,0.243808850646019,0.096030779182911,-0.085119090974331,-0.191094771027565) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.155771419405937,0.099878661334515,-0.019929783418775,0.035145930945873,0.062588781118393,0.005965733900666,0.108854271471500,0.011959653347731,0.046104755252600,-0.033397883176804,-0.062053162604570,0.082635641098022,0.142887055873871,0.242102369666100,0.027376936748624,-0.027780348435044) * MODEL1_texOff(vec2(0,1));
res += mat4(0.061836391687393,-0.087203107774258,0.135483205318451,0.051816631108522,0.173586130142212,0.065232172608376,0.198193550109863,0.023908959701657,0.170259624719620,-0.113039158284664,-0.032747372984886,0.048112254589796,0.068393327295780,0.023373814299703,0.060082629323006,-0.049119174480438) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.164893567562103,-0.297847867012024,-0.059243369847536,-0.087823018431664,0.102000825107098,-0.156819790601730,-0.153780490159988,0.130245283246040,0.048119798302650,-0.196168810129166,0.096179582178593,-0.072191610932350,0.364673614501953,-0.108583174645901,0.145991563796997,-0.123919434845448) * MODEL1_texOff(vec2(1,0));
res += mat4(0.023474758490920,-0.222170516848564,0.102826662361622,-0.018655458465219,0.002493388950825,-0.008903856389225,-0.052496861666441,0.024108257144690,-0.043503087013960,-0.060205053538084,-0.086242504417896,0.131126180291176,0.162916019558907,-0.200103789567947,-0.042763501405716,-0.085376314818859) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.000068670378823,0.062584742903709,0.063698336482048,0.015004212036729,0.111136995255947,-0.068629689514637,0.021266067400575,0.047986607998610,-0.020194880664349,-0.104401692748070,-0.129370361566544,0.048375897109509,-0.016197718679905,0.260604739189148,0.003144525224343,0.045562971383333) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.009494007565081,-0.160883694887161,0.017334502190351,0.047980848699808,-0.108723409473896,-0.105490460991859,0.131951287388802,-0.020883012562990,0.063042014837265,-0.097739346325397,-0.074899278581142,-0.138655111193657,0.118613101541996,0.246436402201653,-0.005054879467934,-0.013892302289605) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.102889098227024,0.095807656645775,-0.019572202116251,0.010037829168141,-0.031098147854209,-0.100552983582020,-0.085025250911713,-0.055848356336355,-0.120970644056797,-0.089501209557056,-0.078080527484417,-0.000325831410009,-0.076711818575859,0.215690672397614,-0.053704995661974,-0.038883980363607) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.017501885071397,0.002546499483287,0.081349745392799,-0.089650392532349,-0.251897871494293,0.028847588226199,0.144431352615356,-0.380736976861954,-0.138717755675316,-0.047388352453709,-0.199309155344963,0.317840903997421,-0.025145439431071,-0.114664696156979,-0.047157779335976,-0.085747458040714) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.091905027627945,0.209613129496574,0.097077623009682,0.127851694822311,0.134090662002563,-0.069176375865936,0.449403107166290,0.300554156303406,0.019749416038394,-0.024704746901989,-0.204932525753975,-0.229276388883591,0.259029686450958,-0.291147112846375,-0.188839703798294,-0.038551162928343) * MODEL2_texOff(vec2(0,0));
res += mat4(0.171026676893234,-0.094047181308270,0.098021648824215,-0.179273113608360,-0.199520513415337,0.018792288377881,-0.106234416365623,0.124473534524441,0.016057837754488,-0.043084822595119,-0.034466519951820,-0.047602597624063,0.203397274017334,-0.084619618952274,0.061528239399195,0.010354598984122) * MODEL2_texOff(vec2(0,1));
res += mat4(0.097692400217056,0.048870794475079,-0.088705241680145,-0.017170326784253,-0.026029942557216,-0.007044454570860,-0.003989091608673,0.031735215336084,-0.026418553665280,-0.081210955977440,-0.107442356646061,-0.006856251973659,-0.020414263010025,0.051568280905485,-0.075524426996708,-0.091927073895931) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.001879038987681,-0.162611171603203,-0.145146533846855,-0.184233650565147,-0.000454302964499,-0.003910727333277,0.168673500418663,-0.095310010015965,-0.289157867431641,-0.147242993116379,-0.186197310686111,0.074865482747555,0.180900245904922,0.227570086717606,-0.040794089436531,-0.156737744808197) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.028678314760327,-0.001528752502054,-0.156599208712578,-0.190440744161606,-0.096589572727680,-0.015244754962623,-0.075777351856232,-0.030011195689440,-0.049886420369148,0.065039552748203,-0.046548321843147,0.057014312595129,-0.029052838683128,-0.028964661061764,-0.040583819150925,0.035852856934071) * MODEL2_texOff(vec2(1,1));
res += mat4(0.110531069338322,-0.132265612483025,-0.018983516842127,0.001778449630365,-0.093310914933681,-0.129610508680344,0.122713975608349,0.120327427983284,0.200818955898285,-0.179345473647118,0.020890504121780,0.043942328542471,0.160114750266075,0.034252371639013,0.040865756571293,0.011852507479489) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.116240553557873,-0.062408510595560,-0.030517959967256,-0.215346634387970,-0.061340983957052,-0.095458112657070,0.066528588533401,0.024081209674478,0.289533525705338,-0.436970233917236,0.046735908836126,-0.015978761017323,0.270559817552567,-0.229097515344620,0.082861125469208,-0.014356478117406) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.017159162089229,-0.116833046078682,0.032637171447277,-0.078759372234344,-0.005798608064651,-0.030351173132658,0.031056150794029,-0.025618672370911,0.066536568105221,-0.334645897150040,0.060907859355211,0.005928058177233,0.034311212599277,0.000405312574003,-0.021068232133985,0.058166693896055) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.022137042135000,-0.013199446722865,-0.006484976503998,-0.240570664405823,-0.066898629069328,0.011494745500386,-0.040472991764545,-0.041279323399067,-0.191632792353630,0.012310089543462,0.083405457437038,-0.040588222444057,-0.164866223931313,0.041564352810383,0.289104551076889,0.217712789773941) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.165273055434227,0.276986092329025,0.024789733812213,0.237166896462440,0.060176219791174,-0.213125124573708,0.194960132241249,0.046989016234875,0.139439374208450,-0.014848333783448,0.081766240298748,0.049111705273390,-0.488530844449997,-0.076976835727692,-0.080847084522247,0.001849945285358) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.148307681083679,0.125426217913628,-0.044717255979776,0.076995976269245,0.040292993187904,0.037416338920593,0.054558683186769,0.048013374209404,0.012386916205287,0.046680003404617,-0.008465783670545,-0.000931824964937,-0.277841031551361,-0.045387744903564,-0.126434907317162,-0.020269829779863) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.050243984907866,-0.095496468245983,0.077757187187672,0.027859266847372,-0.068569831550121,-0.095871858298779,-0.118297904729843,-0.075604669749737,-0.060457587242126,-0.125980019569397,0.023010350763798,0.007413538172841,0.018123079091311,0.022123828530312,0.119379043579102,-0.045246079564095) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.077150143682957,-0.249750822782516,0.159858331084251,0.052104737609625,-0.143403336405754,0.058686994016171,0.076233796775341,-0.008634855970740,-0.310065537691116,-0.159874305129051,-0.003254295093939,-0.089769527316093,0.076181322336197,0.100886382162571,-0.185284435749054,-0.039747305214405) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.044047247618437,-0.171912923455238,-0.019993573427200,-0.013279505074024,0.062883429229259,-0.003397109452635,0.044793505221605,0.049912687391043,-0.165823325514793,-0.155563548207283,0.048007320612669,-0.033263687044382,0.027629274874926,-0.043074890971184,-0.001341161550954,-0.038325976580381) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.092910751700401,0.038242116570473,0.061155211180449,0.009735977277160,0.068924941122532,0.044684201478958,-0.103185176849365,-0.065218374133110,0.031066901981831,-0.041358444839716,-0.089516870677471,-0.000452889071312,-0.135550335049629,0.016193237155676,0.057464394718409,0.108285479247570) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.048691291362047,0.068985901772976,-0.042800020426512,0.264704674482346,0.004774511791766,0.012978856451809,0.078075222671032,0.119614854454994,-0.035247616469860,0.109183855354786,-0.011791688390076,-0.000564041780308,-0.143799200654030,-0.100016795098782,0.023978030309081,-0.109652809798717) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.043104644864798,0.077409058809280,-0.071169875562191,0.119045212864876,0.132277354598045,0.074040852487087,-0.027160070836544,0.016016667708755,0.039458978921175,-0.077349610626698,-0.027942955493927,0.023714514449239,-0.104200229048729,0.095549106597900,0.010621749795973,-0.075493939220905) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.004776227287948,-0.095902539789677,-0.041032910346985,0.377030551433563,0.177932247519493,-0.027589121833444,0.173667922616005,-0.003741249209270,-0.173261776566505,-0.028655007481575,0.038149330765009,0.036700114607811,-0.104844287037849,-0.043544415384531,-0.191592603921890,-0.088318489491940) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.151205256581306,-0.254870682954788,-0.221907839179039,-0.298994481563568,0.258068144321442,-0.077433839440346,-0.286505877971649,0.055425945669413,0.244240477681160,-0.404209315776825,-0.037871733307838,-0.059958636760712,0.021246882155538,0.262790769338608,0.378474265336990,0.015724206343293) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.049800600856543,-0.123343303799629,0.009441207163036,-0.134596720337868,0.019518069922924,-0.109671071171761,-0.012474296614528,-0.031620912253857,-0.100555233657360,-0.013709786348045,-0.004568850621581,-0.022703595459461,-0.052886418998241,-0.025805391371250,0.155894160270691,0.006972067523748) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.008020250126719,0.067276999354362,-0.147297009825706,-0.021659892052412,-0.099414415657520,-0.019496250897646,-0.001833528396674,-0.013307691551745,-0.105588473379612,0.121369943022728,0.017507392913103,0.047821618616581,-0.067753821611404,0.019032144919038,0.043922040611506,-0.006708175875247) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.203964322805405,0.175069481134415,0.157203868031502,-0.046120952814817,0.107806809246540,0.116870820522308,-0.033209379762411,-0.085293658077717,-0.019707599654794,0.356681078672409,-0.051751118153334,-0.047048013657331,-0.068218611180782,-0.148580253124237,-0.010135400108993,0.064154095947742) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.001449081813917,0.094241783022881,0.140777856111526,-0.020961070433259,-0.011553769931197,0.098654277622700,-0.034253533929586,-0.019957095384598,0.091585122048855,0.192624792456627,0.039417613297701,0.002019660780206,-0.147744163870811,0.105405941605568,-0.013451157137752,0.040935397148132) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.002766548888758,0.028997348621488,0.065818890929222,0.040914341807365,-0.033200379461050,0.003847826505080,0.030922241508961,0.099500149488449,0.051291614770889,-0.083183668553829,0.031629331409931,-0.020206069573760,0.003550775581971,-0.108604632318020,-0.008212378248572,0.001944189076312) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.209768220782280,-0.070816799998283,-0.045774631202221,0.010142066515982,-0.086311042308807,-0.272747188806534,0.020925356075168,0.136477082967758,0.091308586299419,0.072458498179913,-0.030588569119573,-0.108338251709938,-0.057099696248770,0.048286866396666,0.064509965479374,-0.003012733766809) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.017014257609844,0.071890838444233,0.063609972596169,-0.017775997519493,-0.093535199761391,-0.183779835700989,-0.047086242586374,0.070302061736584,-0.005932656582445,0.110511697828770,0.047592457383871,-0.038521196693182,-0.003411779413000,0.076985932886600,0.036742605268955,-0.020985014736652) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.161494344472885,-0.112486690282822,0.019800374284387,-0.068944573402405,0.137054815888405,-0.088502548635006,-0.081105999648571,0.224761486053467,-0.291617542505264,0.045087836682796,-0.040047720074654,-0.066531501710415,-0.029363496229053,0.022621609270573,-0.130225032567978,0.238208457827568) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.287135690450668,-0.094905696809292,-0.029446229338646,0.030091911554337,0.075872100889683,0.054272737354040,-0.244401171803474,-0.234965547919273,-0.219927147030830,-0.009801517240703,0.037085946649313,-0.039843365550041,0.121812954545021,-0.096385672688484,0.240134447813034,-0.270577102899551) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.000369062763639,-0.049240730702877,-0.053203504532576,-0.015958407893777,0.013208543881774,0.179532766342163,0.100897699594498,-0.103131338953972,0.017753558233380,0.089039497077465,0.019813043996692,-0.058909170329571,-0.025743750855327,-0.068693414330482,0.288289368152618,-0.019225124269724) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.126017481088638,0.320819914340973,-0.110346764326096,0.015681743621826,-0.137282609939575,0.138449639081955,-0.102542705833912,0.000913305906579,-0.005685483105481,0.081464692950249,0.015076959505677,0.189597979187965,0.041811190545559,-0.000821067020297,-0.143767938017845,0.022498007863760) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.021550495177507,0.249731943011284,-0.047533314675093,-0.022329395636916,0.027160830795765,-0.050621747970581,-0.272112995386124,-0.081190854310989,0.187393933534622,0.147369086742401,-0.156440675258636,0.261767178773880,-0.111714541912079,0.128941982984543,0.168625786900520,0.030299248173833) * MODEL5_texOff(vec2(1,0));
res += mat4(0.007277942728251,0.029435051605105,0.001757129211910,0.004386103246361,-0.091938458383083,-0.041704159229994,0.125223845243454,0.000933649833314,0.104713134467602,-0.064121514558792,0.016468241810799,0.052758961915970,0.033379230648279,0.083228953182697,0.092640191316605,0.028035022318363) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.007198966108263,-0.051620788872242,-0.050131622701883,-0.080642528831959,0.173496171832085,0.021507818251848,-0.087966457009315,0.033090449869633,0.080249346792698,-0.016129409894347,0.003707635449246,0.009400629438460,0.052076164633036,-0.059478897601366,0.057643938809633,0.006021703127772) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.051163367927074,0.006333237048239,0.082992240786552,0.039132710546255,0.241353839635849,-0.022472059354186,-0.046077251434326,0.121979668736458,0.077365510165691,0.248031333088875,0.011474264785647,-0.018752647563815,-0.039797533303499,0.133642524480820,-0.085869789123535,0.023274783045053) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.093448743224144,0.075408086180687,-0.051863830536604,-0.036110315471888,0.209202855825424,-0.092469438910484,0.056396607309580,-0.000408554216847,0.030582677572966,0.108437225222588,-0.045336090028286,0.051581345498562,0.040945280343294,-0.089330270886421,-0.004712556023151,-0.016589306294918) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.054752964526415,0.011910403147340,0.029368849471211,0.063628546893597,-0.100829742848873,-0.016369767487049,-0.027617696672678,-0.123844020068645,0.039954844862223,-0.006372571922839,-0.043001707643270,0.377897053956985,0.063004501163960,0.049039140343666,0.259165346622467,0.086724519729614) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.001716720755212,-0.094791747629642,0.438730299472809,0.201358154416084,-0.100953243672848,0.075952105224133,-0.243535995483398,0.172576799988747,-0.226145699620247,-0.335003614425659,0.105523578822613,-0.303363353013992,-0.143079623579979,0.049764465540648,-0.343079149723053,-0.034430135041475) * MODEL6_texOff(vec2(0,0));
res += mat4(0.145059183239937,-0.020914338529110,0.077597074210644,0.324121981859207,-0.030711852014065,0.079788804054260,-0.035561628639698,0.063275732100010,-0.097966879606247,-0.162390276789665,-0.049121029675007,0.145894378423691,0.034316796809435,0.029234433546662,0.119572311639786,-0.028883369639516) * MODEL6_texOff(vec2(0,1));
res += mat4(0.025825168937445,-0.019435435533524,-0.035219911485910,0.139026448130608,0.046683009713888,0.027548117563128,0.176923468708992,-0.067221447825432,0.043289631605148,0.035445354878902,-0.270402282476425,-0.083392649888992,-0.107924558222294,0.058407090604305,0.118888497352600,0.078731596469879) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.069136641919613,0.019066993147135,-0.092245444655418,0.009734666906297,0.045865967869759,0.045988667756319,-0.207553893327713,-0.133176028728485,0.098090633749962,0.154024884104729,0.183321595191956,-0.077511705458164,0.051040370017290,-0.077954746782780,-0.030463466420770,-0.019312474876642) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.044200427830219,0.018395554274321,-0.116512678563595,0.007581907790154,0.051246192306280,0.024652369320393,0.111016094684601,-0.009782586246729,0.063853770494461,0.116187065839767,-0.029622968286276,-0.008660843595862,-0.001818059477955,0.032488245517015,0.085700295865536,-0.030784511938691) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.045687258243561,0.046402364969254,0.023902559652925,0.913438796997070) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.160931974649429,-0.079524554312229,-0.321507513523102,-0.206985980272293);
res += mat4(-0.100644983351231,-0.001618484500796,-0.004301561973989,0.083151295781136,-0.189772084355354,-0.070916414260864,0.130237996578217,-0.026838883757591,0.122219510376453,0.129813075065613,-0.026222035288811,-0.044336084276438,-0.008566661737859,0.060810875147581,-0.068293176591396,-0.091333314776421) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.080641917884350,0.009163445793092,-0.014327244833112,0.129061281681061,0.055388644337654,-0.067607194185257,-0.086984224617481,-0.096135541796684,-0.256116986274719,0.102635510265827,0.017930639907718,-0.004499760456383,-0.014341020025313,0.082022383809090,-0.002612612908706,0.009434179402888) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.166141569614410,-0.035096336156130,-0.013892311602831,0.110547251999378,-0.030239628627896,-0.086136057972908,0.007715575397015,-0.085058443248272,0.099819444119930,-0.064793616533279,0.082991741597652,0.103447660803795,-0.014556578360498,-0.001953282859176,0.067544549703598,0.016300532966852) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.044410500675440,-0.019001565873623,0.195653647184372,-0.102156974375248,-0.302615255117416,-0.149617299437523,0.172600999474525,-0.116385698318481,-0.112046681344509,0.065697468817234,-0.091337613761425,0.000298343540635,0.036472514271736,-0.064712077379227,0.061924509704113,-0.056515619158745) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.070037126541138,0.199267342686653,-0.092239744961262,0.213619157671928,0.205726608633995,-0.162145912647247,-0.500896334648132,-0.278599232435226,-0.034238282591105,-0.145924955606461,0.125987276434898,0.014136054553092,-0.080149374902248,-0.078699879348278,-0.031318090856075,0.052314631640911) * MODEL1_texOff(vec2(0,0));
res += mat4(0.158069267868996,0.024589464068413,0.037748623639345,-0.063418552279472,-0.051643993705511,0.104433953762054,-0.100249744951725,0.093456849455833,0.029957139864564,-0.017158631235361,-0.072840377688408,0.038975559175014,0.026359945535660,-0.060738988220692,-0.165066659450531,-0.005188062321395) * MODEL1_texOff(vec2(0,1));
res += mat4(0.032308761030436,-0.123099610209465,0.004122196696699,-0.020145896822214,0.092364825308323,-0.053492810577154,-0.010600432753563,-0.171902224421501,-0.008786714635789,0.052039191126823,0.041206389665604,-0.138241425156593,-0.140636786818504,-0.025458173826337,-0.061148352921009,-0.021130787208676) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.015575997531414,-0.072559826076031,0.102720856666565,0.219691663980484,-0.031764350831509,0.103578351438046,0.105428300797939,-0.060166098177433,-0.121633686125278,0.128869369626045,-0.014514856040478,0.011728361248970,0.089339226484299,0.145338997244835,0.056038361042738,-0.239069759845734) * MODEL1_texOff(vec2(1,0));
res += mat4(0.052365493029356,0.118550211191177,-0.083237588405609,-0.093885280191898,-0.026186203584075,0.053879950195551,0.023652058094740,0.026606440544128,0.096211716532707,-0.112775146961212,0.062817819416523,-0.039794091135263,-0.015938991680741,-0.107110492885113,0.079322203993797,-0.059564366936684) * MODEL1_texOff(vec2(1,1));
res += mat4(0.153711408376694,-0.051310390233994,-0.044359326362610,0.103459887206554,0.199332088232040,0.005497463047504,-0.053276654332876,-0.237023815512657,0.015607772395015,-0.018751008436084,0.002795925596729,-0.103283420205116,-0.128179267048836,0.030061736702919,-0.087057895958424,0.014982081949711) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.094874858856201,-0.023365726694465,0.047497656196356,0.026307092979550,-0.079838939011097,-0.014163941144943,-0.149792909622192,-0.040918398648500,0.061845347285271,0.000236585212406,0.021170184016228,-0.266471564769745,0.171856671571732,0.151568174362183,-0.092215366661549,-0.134649217128754) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.057904083281755,0.027167748659849,0.058245826512575,0.021747490391135,0.071460135281086,0.027535118162632,-0.127905070781708,-0.109757423400879,-0.133464515209198,0.106762439012527,0.030558047816157,-0.157965645194054,-0.058426637202501,0.084172375500202,0.123606488108635,-0.030844021588564) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.114960558712482,0.030844973400235,-0.092682301998138,-0.081300303339958,0.197705596685410,0.246914252638817,-0.076565131545067,-0.151049479842186,0.019057849422097,0.020309479907155,0.009829659946263,0.028052804991603,-0.026792388409376,0.038119785487652,0.042815204709768,-0.252719283103943) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.082530595362186,0.051278915256262,-0.072419255971909,-0.021011317148805,-0.234463155269623,0.036426551640034,-0.149436607956886,0.087120629847050,-0.116036064922810,0.172746852040291,0.057192347943783,-0.247904315590858,-0.142202243208885,-0.130085334181786,-0.075457379221916,-0.032578226178885) * MODEL2_texOff(vec2(0,0));
res += mat4(0.290471643209457,-0.003289261600003,0.161743775010109,0.019001128152013,0.239469230175018,-0.225857272744179,-0.092063151299953,-0.037941969931126,-0.086930818855762,0.022179694846272,-0.079764433205128,-0.016219304874539,0.092142716050148,0.188945159316063,-0.093664847314358,-0.083247408270836) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.070923462510109,-0.099199153482914,0.082012392580509,0.096615202724934,0.072672791779041,0.083854250609875,-0.094903513789177,-0.019000319764018,-0.107359357178211,0.024048164486885,-0.113855779170990,-0.067969694733620,0.015221909619868,0.117482222616673,0.059614486992359,-0.146512955427170) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.120045356452465,0.053698178380728,0.162694856524467,-0.228270813822746,-0.102749854326248,-0.196972891688347,-0.093128845095634,-0.067180067300797,-0.060634624212980,0.073715724050999,0.007386338431388,-0.252326160669327,-0.014304801821709,0.017315519973636,-0.022577637806535,-0.038868170231581) * MODEL2_texOff(vec2(1,0));
res += mat4(0.076424486935139,-0.186189264059067,0.296959996223450,0.160488918423653,-0.052649166435003,0.107459448277950,0.015135855413973,-0.046936742961407,0.064367204904556,0.021626530215144,-0.085249014198780,-0.022262332960963,0.044022768735886,0.050074245780706,-0.011675289832056,-0.023227246478200) * MODEL2_texOff(vec2(1,1));
res += mat4(0.017379313707352,-0.145205482840538,0.000335254328093,0.017640959471464,0.121615931391716,0.065902382135391,-0.018140951171517,0.271267414093018,-0.067469649016857,-0.078332372009754,0.040971923619509,-0.107209540903568,-0.135245591402054,0.010682371445000,0.175746500492096,-0.044995661824942) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.050335831940174,-0.021290414035320,0.034200645983219,-0.082697764039040,0.096179805696011,-0.001482464838773,0.309333354234695,0.074003957211971,0.060139838606119,-0.079349957406521,0.065449088811874,0.053667511790991,-0.097311988472939,-0.060984611511230,-0.114546254277229,0.099871553480625) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.107642285525799,0.027189448475838,-0.100581564009190,-0.079596228897572,-0.165143981575966,0.173442199826241,-0.006204172503203,0.008802510797977,0.025726998224854,0.085394188761711,0.008678889833391,0.094171591103077,-0.017498025670648,-0.050705861300230,-0.064554683864117,-0.041928846389055) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.073802687227726,0.003858361626044,0.004421796649694,-0.048704896122217,0.024888383224607,-0.012420477345586,0.072096697986126,0.243517726659775,-0.177629947662354,0.034964289516211,0.003448673989624,-0.004261624533683,-0.374972313642502,-0.073079831898212,-0.178079411387444,0.148971825838089) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.122417204082012,-0.055038098245859,0.081362158060074,0.007091791369021,-0.008639216423035,0.123126856982708,-0.008139596320689,0.032331556081772,0.032416738569736,-0.042060729116201,-0.022197062149644,0.177320539951324,-0.109227433800697,-0.152014538645744,-0.220754519104958,-0.047304306179285) * MODEL3_texOff(vec2(0,0));
res += mat4(0.121485754847527,-0.187470853328705,-0.074050672352314,0.086719781160355,0.124056398868561,-0.007541073951870,0.007290466688573,0.192010015249252,0.095324821770191,-0.045783746987581,0.144063711166382,0.034723017364740,0.038152087479830,0.008452572859824,0.142042517662048,0.069466397166252) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.010670920833945,-0.173156201839447,-0.081185877323151,-0.008592223748565,0.071417450904846,-0.056618005037308,0.025233661755919,-0.003190512303263,0.148110166192055,-0.067995324730873,-0.080275863409042,0.091928496956825,-0.099116012454033,0.003070513950661,0.023155337199569,0.194996550679207) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.028723763301969,0.007037362549454,0.006016048602760,0.115626879036427,-0.004949043504894,0.084391042590141,-0.109325528144836,-0.064071066677570,-0.104690566658974,-0.035090744495392,0.109472610056400,0.017199937254190,0.065964631736279,0.022286014631391,0.089747972786427,-0.136327654123306) * MODEL3_texOff(vec2(1,0));
res += mat4(0.031519241631031,-0.133786350488663,0.106609590351582,0.051933098584414,0.104461178183556,0.074802681803703,0.133574798703194,0.172193050384521,-0.046384844928980,-0.029242230579257,0.042978256940842,0.035226494073868,-0.045390486717224,0.035437539219856,-0.016008645296097,-0.095784164965153) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.141111806035042,-0.069603763520718,-0.096202135086060,0.144929543137550,0.016275167465210,-0.053773533552885,0.048550158739090,-0.097529813647270,-0.010861476883292,-0.100647628307343,0.073548987507820,0.042791545391083,0.075068287551403,-0.069224953651428,-0.120799064636230,0.097256034612656) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.067756429314613,-0.054692056030035,0.108658291399479,0.141719743609428,0.083776965737343,0.175703346729279,-0.004291247576475,-0.066642448306084,0.031591128557920,-0.057184800505638,-0.082447439432144,-0.200363159179688,0.047827370464802,-0.107526801526546,0.376216739416122,0.041398473083973) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.047322202473879,-0.184864699840546,0.036991406232119,0.071813523769379,-0.000942391576245,-0.029421919956803,0.014643330127001,-0.028320243582129,-0.064178802073002,-0.023442264646292,-0.020715601742268,0.044099986553192,-0.065635859966278,0.001660823472776,0.125125914812088,-0.127580925822258) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.156536608934402,-0.048374336212873,-0.016193039715290,0.194966003298759,-0.134848788380623,0.006059768609703,0.005080862436444,0.063992030918598,0.058726202696562,-0.095934905111790,-0.011225474067032,-0.016914213076234,0.017240289598703,0.190682664513588,0.002871049800888,0.006245154887438) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.189549639821053,-0.105686262249947,0.329635471105576,0.156828254461288,0.100487776100636,-0.078763723373413,0.111112825572491,-0.144917532801628,-0.063624769449234,-0.155347317457199,0.007425269577652,0.062602207064629,0.080113962292671,0.150095835328102,-0.161179184913635,-0.146696239709854) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.235231444239616,-0.012040676549077,0.072349347174168,-0.121758274734020,-0.005087813828140,0.002193587832153,-0.069147206842899,-0.076642796397209,0.008936484344304,-0.005028439685702,0.053840029984713,-0.154682219028473,-0.168841823935509,-0.033715959638357,0.063863717019558,-0.045844461768866) * MODEL4_texOff(vec2(0,1));
res += mat4(0.040780074894428,-0.005721047054976,0.067191645503044,0.070166885852814,0.099707946181297,0.000498907233123,0.063159503042698,-0.106672964990139,-0.049658533185720,0.069716341793537,0.040217410773039,0.112133204936981,0.041783683001995,0.024054251611233,-0.022402493283153,-0.133405223488808) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.092599757015705,-0.218147188425064,-0.024485001340508,0.207089334726334,-0.040075961500406,-0.071737542748451,0.018181480467319,-0.092709250748158,0.109478481113911,0.030001198872924,0.045421209186316,-0.173448517918587,-0.159570857882500,0.057233922183514,-0.009531840682030,0.011022859252989) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.109218813478947,-0.049420285969973,-0.084182851016521,-0.030052436515689,-0.023926738649607,0.002439680974931,0.007759447209537,0.005238350946456,-0.036824319511652,0.005334021523595,0.018227018415928,-0.007991058751941,0.081803932785988,-0.076038636267185,0.044879328459501,0.163002312183380) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.052723340690136,0.083407647907734,-0.007797570433468,-0.062582887709141,0.050874870270491,0.048098679631948,-0.060507830232382,0.133995816111565,-0.005521568004042,-0.089510098099709,-0.071215502917767,-0.014842878095806,0.033074941486120,-0.061149969696999,-0.119993306696415,0.083164602518082) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.068547420203686,0.121052645146847,0.029079513624310,-0.221644327044487,0.022303385660052,0.007380180060863,0.002656073309481,0.053186815232038,0.111785121262074,-0.043490964919329,0.025303877890110,0.011143861338496,0.273763418197632,0.144467815756798,0.141237780451775,0.036762624979019) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.115085348486900,0.095211669802666,-0.368439465761185,-0.094343416392803,0.011239517480135,-0.034143019467592,0.114884361624718,-0.021772393956780,-0.029481854289770,0.002407148247585,-0.022612549364567,-0.022542245686054,-0.124131865799427,-0.052197411656380,0.217759162187576,0.034524682909250) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.181279599666595,0.058578282594681,-0.008579170331359,-0.019984845072031,-0.167781591415405,-0.168172985315323,0.007863944396377,0.025237062945962,0.046702980995178,-0.001890363171697,0.052980445325375,-0.164761602878571,0.285626590251923,-0.018968906253576,-0.206200152635574,0.016160320490599) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.067907273769379,-0.010121072642505,-0.087845429778099,-0.257988482713699,0.200292110443115,0.100608080625534,-0.241242349147797,-0.017727892845869,-0.037479944527149,-0.032988388091326,-0.197292923927307,-0.127719923853874,0.108222611248493,0.073998585343361,0.056436859071255,-0.025163443759084) * MODEL5_texOff(vec2(0,0));
res += mat4(0.097075566649437,0.166431352496147,-0.104976654052734,-0.034839175641537,-0.161738514900208,0.155399128794670,-0.127948224544525,-0.182382076978683,0.033940423280001,0.035009086132050,0.105538263916969,0.080640248954296,-0.323990285396576,0.326167196035385,-0.296059727668762,-0.098269514739513) * MODEL5_texOff(vec2(0,1));
res += mat4(0.026697006076574,0.106441996991634,-0.025939445942640,-0.109564729034901,0.026041826233268,0.044233642518520,-0.025408679619431,0.084648892283440,-0.229230239987373,-0.059596117585897,-0.065271124243736,-0.270502299070358,-0.013153770938516,0.011539028026164,0.005132788792253,0.024349277839065) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.053677935153246,-0.013606908731163,-0.082155868411064,-0.118877671658993,0.024568008258939,-0.087483033537865,0.045277923345566,-0.099726088345051,0.158214390277863,0.076399512588978,0.017453409731388,0.001793966512196,0.143781453371048,-0.024423303082585,-0.007111249491572,0.054699156433344) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.030112190172076,0.087113618850708,-0.097823821008205,-0.021541930735111,0.058200705796480,0.066611550748348,-0.138546884059906,0.008231965824962,-0.015334475785494,-0.037381280213594,-0.110475569963455,-0.142194867134094,0.103397451341152,-0.195472642779350,-0.005301717203110,0.020848510786891) * MODEL5_texOff(vec2(1,1));
res += mat4(0.085381492972374,0.030795736238360,-0.000677767908201,-0.150509223341942,0.043821804225445,-0.071455053985119,-0.069276340305805,0.024904312565923,0.095010869204998,-0.043385151773691,-0.077823191881180,0.031500834971666,-0.008870303630829,-0.001528625260107,0.127183333039284,0.125659748911858) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.163207426667213,0.008258952759206,-0.026713838800788,0.056010238826275,0.086603537201881,-0.084111370146275,-0.171714812517166,0.116513863205910,-0.127634555101395,0.029870720580220,0.058967702090740,-0.087146751582623,-0.030352879315615,0.062223944813013,0.034154191613197,0.070746019482613) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.044239819049835,-0.055306702852249,-0.026948066428304,-0.027407687157393,0.115110449492931,-0.073675058782101,0.129390031099319,0.050031285732985,0.074970498681068,-0.026831449940801,0.032369587570429,0.018961163237691,-0.009496238082647,0.047613050788641,-0.056736107915640,-0.016070559620857) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.318556129932404,0.047321274876595,0.027753278613091,-0.027686670422554,-0.077617846429348,-0.047703575342894,0.105031795799732,-0.041556794196367,0.307262271642685,-0.088156342506409,-0.214315950870514,0.212758436799049,-0.105995528399944,-0.060920976102352,0.189148232340813,0.178794011473656) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.156408563256264,0.132240831851959,-0.407050251960754,-0.167429000139236,0.082318827509880,-0.124148644506931,-0.013225344009697,-0.024611225351691,-0.314809203147888,0.273882001638412,0.250329673290253,-0.322209477424622,0.329765290021896,-0.015694675967097,0.489248454570770,0.015575551427901) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.137330874800682,-0.372465610504150,0.256129562854767,-0.012575555592775,0.318280637264252,-0.111478760838509,0.217148631811142,0.282023191452026,0.137236356735229,-0.049642331898212,0.084562890231609,0.005991394631565,-0.214265823364258,0.084617406129837,-0.143795818090439,-0.033323541283607) * MODEL6_texOff(vec2(0,1));
res += mat4(0.166574209928513,-0.101737305521965,-0.034759182482958,-0.069774150848389,0.028889691457152,0.017434827983379,-0.027814453467727,-0.147427722811699,0.103713117539883,0.111352257430553,0.021875556558371,0.026772050186992,-0.057921439409256,0.144853517413139,0.051883772015572,-0.011095414869487) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.154819846153259,-0.055126670747995,-0.089480467140675,0.160169392824173,-0.114825546741486,0.046952906996012,0.140577003359795,-0.111628741025925,-0.042316127568483,-0.090146601200104,-0.128158971667290,0.071401335299015,-0.052901804447174,-0.208185896277428,0.209415167570114,0.098731860518456) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.105509571731091,-0.166467860341072,0.075469918549061,-0.037779711186886,0.057294253259897,0.105551518499851,0.016519958153367,-0.103189863264561,0.083247274160385,-0.001724953763187,0.055979602038860,0.027071110904217,-0.078456908464432,0.091590702533722,-0.110208466649055,0.081790544092655) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.232305243611336,-0.095321215689182,0.024101460352540,-0.060119580477476) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(0.006843777839094,-0.205559492111206,-0.306959152221680,-0.034428630024195);
res += mat4(-0.025476925075054,0.020669391378760,-0.123326733708382,-0.002168206963688,0.050131689757109,-0.105898946523666,-0.470224261283875,-0.044037800282240,-0.039968017488718,0.005313200876117,-0.019832674413919,0.042462404817343,-0.022996680811048,0.074393481016159,0.094776406884193,-0.016984142363071) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.080420225858688,0.083912611007690,0.083187513053417,-0.006349216215312,0.084157906472683,-0.223074927926064,0.023334505036473,0.039594691246748,-0.062935754656792,0.034472227096558,-0.048830211162567,0.211094811558723,-0.205993354320526,-0.060845140367746,-0.038793716579676,0.020887145772576) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.009419017471373,-0.098486356437206,-0.018638234585524,-0.017941899597645,-0.023715758696198,0.011403746902943,-0.044540606439114,-0.065676204860210,-0.067378520965576,-0.029411563649774,0.048477247357368,-0.034530315548182,0.009783444926143,-0.019319569692016,-0.023410793393850,0.007166286464781) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.049519140273333,-0.001723846537061,0.025017971172929,0.029570553451777,0.010932680219412,-0.016830071806908,-0.232938811182976,-0.027327919378877,0.024917270988226,0.052657075226307,-0.004218795336783,0.146879240870476,0.026782805100083,-0.089469298720360,-0.103714682161808,-0.049295034259558) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.059296227991581,-0.114568501710892,-0.258508086204529,0.144213482737541,-0.274285167455673,-0.115410663187504,0.149199366569519,0.124229647219181,-0.180417016148567,-0.068328127264977,-0.097757458686829,-0.615109980106354,0.310066729784012,0.054535657167435,0.070275843143463,0.027334049344063) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.033888522535563,0.103921756148338,0.099443376064301,0.005954930558801,0.057264920324087,0.014346410520375,-0.005426357500255,-0.107926718890667,-0.015744231641293,-0.106649719178677,0.036038883030415,0.056964702904224,0.036412212997675,-0.080240115523338,-0.052185814827681,0.028982391580939) * MODEL1_texOff(vec2(0,1));
res += mat4(0.008325628004968,0.087031535804272,0.067376174032688,0.030001319944859,-0.006972467061132,0.034980647265911,0.035355776548386,0.010606781579554,0.101765684783459,-0.059915486723185,-0.055046603083611,0.142025858163834,0.038513783365488,0.072281405329704,0.009503322653472,-0.060992617160082) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.138080641627312,-0.054797459393740,0.009535846300423,-0.012564553879201,0.077496141195297,0.062922708690166,0.034179266542196,0.060845278203487,0.324423104524612,0.030560756102204,-0.032102368772030,0.133565112948418,-0.227863222360611,-0.060229215770960,-0.027896437793970,-0.118212096393108) * MODEL1_texOff(vec2(1,0));
res += mat4(0.017958765849471,0.024198917672038,-0.007926032878458,0.066497564315796,-0.032034888863564,0.003433485515416,-0.010649478062987,-0.056724816560745,-0.113730654120445,-0.126171469688416,-0.040868580341339,-0.002856603357941,-0.088988736271858,0.002386680338532,-0.031300172209740,0.029287237673998) * MODEL1_texOff(vec2(1,1));
res += mat4(0.007368059363216,0.045329455286264,0.013313340954483,-0.006147170905024,0.040558386594057,0.007597855292261,-0.031640890985727,0.009581776335835,0.047081723809242,-0.128166660666466,0.088550642132759,-0.001652646926232,0.063879802823067,0.083796441555023,0.066989228129387,-0.038331806659698) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.097305141389370,0.094814583659172,0.102604798972607,0.030474944040179,-0.145329669117928,0.436438381671906,0.090853177011013,0.039959754794836,0.153566434979439,-0.184260711073875,-0.119244091212749,-0.075128458440304,-0.178736954927444,-0.105495251715183,0.096479728817940,0.000485988392029) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.096955731511116,0.049773134291172,0.036761347204447,-0.036488384008408,0.052152633666992,-0.204106152057648,-0.021444080397487,-0.011040036566556,-0.125819697976112,-0.043513100594282,-0.041648957878351,0.121632322669029,-0.071883000433445,0.071908995509148,0.028810838237405,0.028539104387164) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.026385815814137,0.033530764281750,0.076664358377457,0.061275560408831,-0.118867725133896,0.097945503890514,-0.064578182995319,0.006439381744713,-0.112762853503227,0.171762228012085,0.319540202617645,0.048480842262506,-0.130829989910126,-0.055530808866024,-0.147883817553520,-0.025841878727078) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.209347084164619,0.381491810083389,0.268974035978317,0.074699319899082,0.156445413827896,-0.019018121063709,-0.428650021553040,0.208595022559166,0.038188047707081,-0.217635542154312,0.112416900694370,-0.225604772567749,0.126397386193275,0.140198037028313,-0.061349339783192,-0.011867270804942) * MODEL2_texOff(vec2(0,0));
res += mat4(0.150892734527588,0.009239790961146,0.073033474385738,-0.026765316724777,-0.016906477510929,0.096398748457432,-0.006225327961147,-0.215186446905136,0.085721231997013,-0.149604618549347,-0.057514097541571,0.174292936921120,-0.040706381201744,-0.044281169772148,-0.028964260593057,0.050713807344437) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.025568829849362,0.087753124535084,0.050537250936031,0.041632864624262,0.051482055336237,0.067496433854103,0.079127296805382,-0.005927894730121,0.074853643774986,-0.014722500927746,-0.013971118256450,0.046580623835325,0.036907795816660,-0.093624196946621,-0.077286191284657,-0.036831863224506) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.123513266444206,0.139357581734657,0.128976389765739,0.047480482608080,-0.178432613611221,0.143285110592842,-0.040730845183134,0.055187501013279,-0.086736418306828,-0.080477923154831,-0.015149190090597,-0.040278639644384,-0.334056556224823,-0.122020915150642,-0.086340658366680,0.022630473598838) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.172231435775757,0.011847747489810,0.035450585186481,0.071022734045982,-0.007146198302507,-0.008040616288781,-0.017550202086568,0.034103855490685,-0.030556984245777,-0.033748488873243,0.004807936027646,-0.030245905742049,0.001955152489245,0.088273413479328,0.022024517878890,0.041245914995670) * MODEL2_texOff(vec2(1,1));
res += mat4(0.154717341065407,-0.090854205191135,-0.026037279516459,-0.040975552052259,-0.052379775792360,0.092883989214897,0.268367916345596,0.008854807354510,0.007294901181012,0.154410660266876,0.067025437951088,-0.018535191193223,-0.024811400100589,0.013495589606464,-0.111441023647785,0.025806749239564) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.158584892749786,-0.106858238577843,-0.151084184646606,-0.003384204581380,-0.079531267285347,0.018272604793310,0.051655244082212,-0.023360807448626,0.257935345172882,-0.109193049371243,-0.017414892092347,-0.008316747844219,0.116136930882931,-0.019382346421480,0.013247445225716,-0.015986246988177) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.142132699489594,0.019187113270164,-0.004160704091191,0.117910206317902,0.029933046549559,0.123628810048103,-0.064079232513905,-0.008354709483683,0.019481541588902,0.132495462894440,0.149146229028702,0.006620840635151,-0.053092166781425,-0.096635542809963,0.011532286182046,-0.009052909910679) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.024460796266794,-0.078280322253704,-0.070798873901367,-0.008281359449029,-0.090521357953548,0.007718314882368,-0.052923746407032,0.018480483442545,-0.176761254668236,0.063193008303642,-0.013736770488322,-0.030792897567153,-0.011358173564076,0.221254169940948,-0.338400363922119,0.025198021903634) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.032647892832756,0.028218321502209,-0.089995004236698,0.121984750032425,-0.056755129247904,0.173397064208984,0.264391064643860,-0.008700642734766,-0.297141581773758,-0.087589941918850,0.026462275534868,-0.093184113502502,-0.143995538353920,0.102119714021683,0.035330910235643,-0.181613087654114) * MODEL3_texOff(vec2(0,0));
res += mat4(0.159249350428581,-0.057400017976761,-0.118214480578899,-0.147352576255798,-0.069056749343872,-0.135090589523315,-0.014379576779902,-0.000052147777751,0.019586740061641,0.072836190462112,0.023342400789261,-0.019824644550681,-0.017230851575732,-0.048982728272676,-0.001525253755972,0.071041718125343) * MODEL3_texOff(vec2(0,1));
res += mat4(0.041166514158249,-0.011103516444564,-0.054672762751579,0.004690031986684,-0.077197074890137,-0.209310844540596,-0.100721940398216,-0.017723960801959,-0.141346514225006,0.041907679289579,0.090751469135284,0.046362284570932,-0.051853954792023,-0.013323733583093,-0.143000349402428,0.021561071276665) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.185957893729210,0.005722622852772,-0.036862529814243,0.065967708826065,-0.099163129925728,0.200650632381439,0.201101332902908,0.015340466983616,-0.150085479021072,0.040680687874556,0.002700820798054,0.032203461974859,-0.026665836572647,0.100408986210823,0.064960777759552,0.024459959939122) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.026015909388661,-0.122593037784100,-0.068339206278324,-0.030285229906440,0.005144232884049,0.085822701454163,0.057051595300436,-0.008041099645197,-0.091168038547039,-0.065332055091858,-0.043955884873867,0.038352906703949,0.025172330439091,0.027539946138859,0.058341383934021,0.014866852201521) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.054611288011074,0.071472682058811,0.074268698692322,0.023845026269555,0.103663116693497,0.001256252289750,0.056382238864899,0.023722000420094,-0.055022198706865,-0.044652894139290,-0.056452404707670,0.008328437805176,0.043268073350191,-0.113860175013542,0.008731691166759,-0.007149484008551) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.270075470209122,-0.288247197866440,-0.092720396816730,-0.019014511257410,-0.138903319835663,-0.012343061156571,-0.069257996976376,0.108998581767082,-0.078610084950924,-0.071313902735710,-0.004302382003516,0.036688555032015,-0.019734710454941,0.036681037396193,0.000844836176839,-0.048905495554209) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.132410198450089,-0.029911875724792,-0.030852168798447,-0.128954485058784,0.036061834543943,0.076165921986103,0.039362721145153,-0.012812944129109,-0.055073011666536,-0.030849952250719,-0.083147585391998,-0.001588956685737,-0.025796409696341,0.127892136573792,-0.031513255089521,0.115254715085030) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.038342420011759,0.177900403738022,0.279282718896866,0.036464046686888,0.073125846683979,0.015918595716357,-0.145354390144348,-0.006860367022455,0.032170996069908,0.017332831397653,0.083191171288490,-0.014712845906615,-0.079500071704388,-0.052658349275589,0.020243832841516,0.005883965175599) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.089641407132149,-0.230659157037735,0.023179724812508,-0.230657830834389,0.468719720840454,0.054284226149321,0.261383980512619,0.010531400330365,0.024847405031323,0.143673345446587,0.108436465263367,-0.102297954261303,0.130075260996819,-0.018960127606988,-0.068409450352192,0.104606635868549) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.224335044622421,0.055605787783861,-0.007339188829064,0.175657719373703,0.116226918995380,0.109658077359200,0.096620216965675,0.034476254135370,-0.022751668468118,-0.066454946994781,-0.037086833268404,0.031287197023630,0.265180438756943,-0.010637022554874,-0.032097045332193,-0.012654921039939) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.092023514211178,0.090267606079578,0.100409120321274,0.017965696752071,0.033716093748808,-0.000086146421381,0.066194966435432,-0.014769773930311,-0.047604911029339,0.000828856602311,-0.039036389440298,-0.011767440475523,0.114801697432995,-0.030153756961226,-0.052087359130383,0.029133914038539) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.182277947664261,-0.119147606194019,-0.046135459095240,-0.096249908208847,-0.034815084189177,0.002888002898544,-0.043754875659943,-0.016896177083254,-0.232778310775757,-0.011774836108088,0.101348593831062,-0.072861231863499,0.283318102359772,0.001496528391726,-0.119342677295208,0.003239709185436) * MODEL4_texOff(vec2(1,0));
res += mat4(0.016271183267236,-0.030779957771301,-0.069916889071465,0.047279465943575,-0.080153666436672,0.065927684307098,0.078580968081951,-0.002081768587232,-0.014548193663359,0.147008880972862,0.085829302668571,0.016817117109895,-0.038236871361732,-0.092043153941631,-0.018172761425376,-0.062599740922451) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.049500130116940,0.029280684888363,-0.101949863135815,0.026014577597380,0.073069140315056,0.093642391264439,0.004405816551298,0.042505249381065,0.088015906512737,0.066625252366066,0.003212122246623,-0.034123212099075,-0.021335951983929,-0.039378732442856,0.074645109474659,-0.004257734864950) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.130885526537895,-0.123000204563141,-0.169815108180046,0.035295631736517,-0.007061687298119,-0.076222382485867,-0.024636950343847,0.045431707054377,0.247115284204483,0.006019254215062,0.052716191858053,-0.031861878931522,-0.134989380836487,-0.050139334052801,-0.046517711132765,-0.010518288239837) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.024075126275420,0.175720974802971,0.228708386421204,-0.020104879513383,0.046408314257860,0.060413278639317,0.030774345621467,-0.035820651799440,0.006164557766169,0.094897590577602,0.025808133184910,0.016190549358726,0.031145948916674,0.115045726299286,-0.005009257234633,0.007767390459776) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.061998624354601,-0.210074812173843,-0.165454939007759,0.018401164561510,-0.002826859243214,-0.083807371556759,-0.319284826517105,-0.030326059088111,-0.115111261606216,-0.063378967344761,-0.129457607865334,0.010500288568437,0.065423980355263,-0.000057547345932,0.232890382409096,-0.020858773961663) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.074559159576893,-0.178617447614670,-0.197397008538246,0.011693185195327,-0.088619343936443,-0.291228294372559,0.071556679904461,-0.060422725975513,-0.159591808915138,0.048221368342638,0.107449062168598,0.060302361845970,0.048457194119692,-0.314720958471298,-0.267118811607361,-0.099335893988609) * MODEL5_texOff(vec2(0,0));
res += mat4(0.041940219700336,0.097023501992226,0.166043609380722,-0.012913182377815,-0.068817332386971,0.026759911328554,-0.112833924591541,0.141811341047287,-0.021142516285181,0.044201653450727,0.056122887879610,0.017444582656026,-0.089167207479477,0.061073821038008,-0.158044755458832,0.137632787227631) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.043082259595394,0.013009108603001,0.064849987626076,-0.011436594650149,-0.035362061113119,0.070217385888100,-0.019910644739866,-0.085580356419086,-0.023481331765652,0.075043663382530,0.048000704497099,0.068634137511253,0.024761224165559,-0.010984347201884,0.009874991141260,0.001367084914818) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.143284812569618,-0.097778439521790,-0.082119323313236,-0.030737021937966,0.031272996217012,0.058436200022697,0.174321353435516,-0.115536622703075,0.249759629368782,-0.102963678538799,-0.010666180402040,0.010654191486537,-0.099203944206238,-0.127515390515327,-0.046290408819914,-0.083647243678570) * MODEL5_texOff(vec2(1,0));
res += mat4(0.071522355079651,0.077968969941139,0.098085492849350,-0.009697882458568,0.033627022057772,-0.026946943253279,-0.039549093693495,0.041987992823124,0.187324732542038,0.028383154422045,0.002864519832656,-0.113117896020412,0.110360108315945,0.126156255602837,0.029725393280387,0.005648602265865) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.049673460423946,0.005042913835496,-0.029198873788118,0.010279230773449,0.037308908998966,-0.120735757052898,-0.119606442749500,-0.023397656157613,0.168938711285591,-0.050303634256124,0.013941220007837,-0.020649174228311,0.028907570987940,0.044376246631145,0.145204141736031,-0.028388878330588) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.054820466786623,0.362583458423615,0.200453057885170,0.059266641736031,0.056129258126020,0.007377343717963,0.161302313208580,-0.018965275958180,0.245820194482803,0.093250580132008,0.086948566138744,0.043611917644739,-0.113652415573597,-0.189176857471466,-0.224056497216225,-0.041045036166906) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.005751532968134,-0.002760049421340,0.041401971131563,-0.068777568638325,0.044146221131086,0.050479419529438,0.040800176560879,-0.036253735423088,0.094360269606113,-0.009924956597388,0.005237541627139,-0.066256508231163,0.060774151235819,0.041281364858150,-0.009967631660402,0.002785975579172) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.043805953115225,-0.129233136773109,-0.166886970400810,-0.071814782917500,-0.053176138550043,0.033594448119402,0.016015740111470,-0.027465287595987,-0.004228598438203,0.177489772439003,0.287730813026428,-0.225977167487144,0.044838611036539,0.347584128379822,0.381090819835663,-0.064477354288101) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.033179681748152,0.632083892822266,0.058070134371519,0.047352593392134,-0.101767644286156,0.203959494829178,0.242582291364670,0.051042392849922,-0.304113268852234,-0.003743699518964,-0.028596427291632,0.604261100292206,0.057672873139381,-0.482328355312347,-0.091355942189693,-0.067585803568363) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.002205654745921,0.290810108184814,0.024886695668101,-0.221569985151291,-0.035546924918890,0.033823773264885,0.239504948258400,-0.047550927847624,-0.072183080017567,-0.104100272059441,0.000483226031065,-0.194775894284248,-0.058850213885307,0.066582448780537,-0.015473823063076,0.010242733173072) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.017293415963650,-0.050074722617865,0.078138448297977,0.009714365936816,-0.049219902604818,0.017358008772135,-0.068589828908443,0.003096732776612,0.094873622059822,0.005323607474566,0.056398697197437,-0.124245896935463,-0.078975610435009,0.098961964249611,-0.027194412425160,-0.013477446511388) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.056982576847076,0.118334405124187,0.033461369574070,-0.045177962630987,0.098232507705688,0.137324333190918,0.101990930736065,0.114279568195343,0.193092525005341,-0.086582489311695,-0.153410330414772,-0.243723571300507,0.053464874625206,-0.162405788898468,0.001177381491289,-0.050068821758032) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.080622434616089,0.012960765510798,-0.085539147257805,-0.019099077209830,-0.041727624833584,0.031373474746943,-0.030122794210911,0.055960029363632,0.112945668399334,0.030298124998808,0.021062390878797,-0.047449450939894,-0.025169087573886,-0.019575217738748,-0.015782188624144,0.045496184378862) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.479899823665619,0.006469488143921,0.010579519905150,0.981946051120758) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] sub-pixel convolution 1

vec4 hook()
{
vec3 res = vec3(0.000559547625016,0.001081973430701,0.000323714397382);
res += mat4x3(-0.005319814663380,0.012808615341783,0.002614864148200,-0.004877144470811,-0.002361631253734,0.004522126168013,-0.025056725367904,-0.006893934682012,-0.003663843031973,-0.007597026415169,-0.014058372937143,0.002180390991271) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.007799448911101,0.010902278125286,-0.013365878723562,0.016615362837911,0.016100920736790,0.004006986040622,-0.025272982195020,-0.040515240281820,-0.042748231440783,-0.001298238756135,0.008940916508436,0.021168405190110) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.001785131520592,-0.002554100705311,-0.002275957725942,-0.001318026101217,0.000146096906974,0.005400139838457,-0.002037602942437,-0.002488683676347,-0.009014714509249,0.003061111317948,0.000094118411653,-0.000423575547757) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.043403223156929,0.013249788433313,0.025015342980623,-0.041552450507879,-0.031912758946419,-0.014292705804110,-0.023314410820603,-0.003316441550851,0.002331326948479,-0.051042549312115,0.031074211001396,0.026965437456965) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(0.004666888155043,0.024653375148773,-0.005893175490201,0.010369302704930,0.001197380130179,-0.027944559231400,-0.013192196376622,-0.034590143710375,-0.041714467108250,0.019633200019598,0.021905085071921,-0.053352572023869) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.007192987482995,-0.005110586527735,0.002423730678856,-0.006262249313295,-0.006237836554646,0.000568533781916,-0.001411882927641,0.001131480094045,0.000468086946057,-0.002755598165095,-0.001722633256577,-0.000327301386278) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.002524754032493,0.000557733292226,0.004757435992360,-0.012052494101226,-0.004336783662438,0.000527515192516,-0.002431171713397,-0.000549727526959,-0.000612658623140,0.010090590454638,0.007044012192637,0.003965775948018) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(-0.000097430427559,0.001040872070007,-0.002111328998581,-0.002458966569975,-0.005322254728526,-0.009691255167127,0.001405562041327,-0.001074910513125,-0.004221318755299,-0.002976752119139,-0.002925914013758,0.003477022983134) * MODEL7_texOff(vec2(1,0));
res += mat4x3(-0.000971811939962,-0.001643163152039,-0.002542591420934,0.000848568277434,-0.001248934771866,-0.003728024661541,-0.001244624843821,0.000067519074946,0.002222509123385,0.002567498246208,-0.000318476726534,-0.003897031769156) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.022370634600520,0.011309849098325,0.005669259466231,-0.001908877980895,-0.010781830176711,-0.008640737272799,0.008382881060243,-0.009234833531082,0.000187907251529,0.018526015803218,-0.017077196389437,-0.014821313321590) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.011724223382771,0.022993950173259,0.031010152772069,-0.040414545685053,0.018989153206348,0.032040644437075,-0.011371605098248,0.013485162518919,0.033843159675598,-0.022070925682783,-0.011320878751576,0.028526118025184) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.007463554386050,0.007572031579912,0.007365624886006,0.017674427479506,0.019174743443727,-0.024914242327213,-0.002817990956828,-0.002438618801534,-0.005919808056206,0.006033527199179,0.004618186503649,-0.003291558707133) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.004880897235125,-0.005193104501814,-0.004359763581306,0.030613886192441,-0.004388698376715,-0.017519097775221,0.031755879521370,0.008276409469545,-0.002653074683622,0.015445579774678,-0.001344477292150,-0.014826461672783) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.016894785687327,-0.015135589055717,-0.009186087176204,0.004637080244720,-0.025803044438362,0.007171590346843,-0.034803099930286,-0.050935853272676,0.006829158868641,-0.008781602606177,-0.011712260544300,0.004739183466882) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.000749146041926,-0.002079295460135,-0.008437698706985,-0.000740388873965,-0.001479069818743,0.009299343451858,-0.002688560402021,0.002778844442219,0.004142022691667,0.004730985965580,0.005550104193389,0.000423572113505) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.005741347558796,0.002763527678326,0.000912528659683,0.000379833451007,0.004496308509260,-0.001440923078917,-0.002792079700157,-0.008926111273468,-0.007423530332744,0.001748586073518,-0.001091385143809,-0.001801280421205) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.006215112283826,0.005833930801600,0.006434245500714,-0.002561144763604,0.001446842099540,-0.002056990284473,0.000620495411567,-0.001296902890317,-0.002087593078613,0.002784168580547,0.002377767115831,0.000055263248214) * MODEL8_texOff(vec2(1,0));
res += mat4x3(0.000828059273772,0.003380391979590,0.005731862038374,-0.001619473798200,-0.000385166553315,0.000162854063092,0.003936659079045,0.002444455632940,0.001197984442115,-0.002134252572432,-0.000973119051196,0.001475091325119) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.015769021585584,-0.002550642704591,-0.003652651095763,-0.001034205546603,0.000607094611041,0.000906932633370,0.008287958800793,-0.007495322264731,-0.004235666710883,-0.014716655947268,0.006301484536380,0.003348841564730) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.040207054466009,0.025415461510420,-0.016731865704060,-0.000306834350340,-0.003611184190959,-0.005854249466211,-0.017746763303876,-0.003786311019212,0.015800980851054,0.028538852930069,0.013997699134052,-0.028549266979098) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(0.001241145655513,0.000819168519229,0.013807130046189,-0.000199561167392,-0.002796183340251,-0.003034729044884,0.007404491771013,0.005720847751945,-0.003493859199807,-0.001911130850203,-0.003336246823892,0.004104764200747) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(0.003682896494865,-0.003214479656890,-0.000742571428418,-0.003146690782160,0.009418526664376,0.008802704513073,-0.012495353817940,-0.002023244975135,0.000765395816416,0.029889738187194,0.000095376133686,-0.004369980655611) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(0.001640786882490,0.049296829849482,0.034179273992777,0.028518958017230,-0.017208535224199,-0.020464379340410,0.022166511043906,0.020578388124704,-0.024899464100599,-0.015957344323397,-0.049542061984539,0.002527046250179) * MODEL9_texOff(vec2(0,0));
res += mat4x3(0.004421507474035,-0.007877703756094,-0.026773005723953,-0.030310347676277,-0.021771658211946,0.040414787828922,0.012551528401673,-0.001965066883713,-0.015412688255310,0.002722498262301,0.008043146692216,0.015694649890065) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.003274449845776,0.005988623015583,0.007096952758729,0.001565696089529,0.003461439162493,0.001729118055664,-0.000404255959438,0.001633492182009,0.001868990017101,0.004950186237693,-0.000810603611171,-0.001542985555716) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.003868747269735,-0.006047356873751,-0.007585641462356,-0.000524959526956,-0.000564001966268,-0.002544626360759,-0.003769166767597,0.004236774984747,0.005480160471052,0.003484349232167,0.007538980338722,0.007085389457643) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.001244689105079,0.001743877306581,-0.000220072513912,-0.002127255778760,0.000422306649853,-0.000117477873573,0.001576640526764,-0.005423354450613,-0.005542919039726,-0.007378532551229,-0.006653077434748,-0.000589129398577) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.010748667642474,-0.001431016135029,-0.004687992855906,0.002251667669043,0.000977551215328,0.000804807292297,-0.006993847899139,0.007336835842580,-0.001423748093657,-0.005716818384826,0.002791781676933,0.004902954213321) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.002646529115736,0.019650671631098,0.025050591677427,0.004309707786888,0.004093470517546,0.003343991935253,-0.006605840753764,0.044574018567801,-0.025176424533129,-0.003680625697598,-0.014737374149263,-0.013124601915479) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.002719949465245,-0.006940958090127,-0.007043540943414,-0.000504766649101,0.000362785300240,0.002486467128620,-0.001114472164772,0.013343134894967,-0.034038014709949,0.002915087155998,0.004771354608238,0.004202555865049) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.014997169375420,0.006942091509700,0.003314419416711,-0.007898908108473,-0.001002706354484,0.000629532209132,0.008766665123403,0.004519047215581,0.000658039585687,-0.010425965301692,0.011257414706051,0.011969962157309) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(0.024585139006376,0.027001526206732,0.024692809209228,-0.007181527093053,-0.013606839813292,-0.014300604350865,0.010403050109744,-0.013605091720819,-0.012430354021490,0.009279652498662,-0.016356581822038,-0.025864321738482) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.000585525936913,0.003671541810036,0.013240733183920,0.000782170391176,0.001003342913464,-0.000358253455488,0.000095603907539,0.001123284921050,-0.000351411465090,0.004092773422599,0.010287547484040,0.017765207216144) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.003006986342371,-0.004264895804226,-0.003397312713787,0.025579318404198,0.009290276095271,0.000493072031531,-0.001863162848167,-0.004772737622261,-0.002286424161866,0.002028885995969,0.000739046605304,0.000626854191069) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.004022036679089,-0.002983799902722,-0.001652635866776,0.014688198454678,0.032385881990194,0.037365350872278,0.001515645068139,0.004403297789395,0.000676378316712,-0.001511279726401,-0.000337213248713,0.001832320820540) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.000713369867299,-0.001190887531266,-0.003026813268661,0.000675251649227,-0.001907422090881,0.000352072849637,-0.001784990075976,0.001490224734880,0.001051190076396,0.000303472450469,0.000316397636198,-0.000457595248008) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.001968065975234,-0.002782072406262,-0.002357611199841,-0.006704254541546,-0.000408557796618,0.004182394593954,0.008643171750009,-0.007024005986750,0.001050078775734,-0.011675938963890,0.019917532801628,0.018623393028975) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.007523562759161,0.005868526641279,0.010868143290281,0.010165240615606,-0.020031135529280,-0.019460422918200,0.007994649000466,-0.017875550314784,-0.003021791111678,0.041119553148746,-0.003762637963519,-0.043259341269732) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(0.006761027500033,0.003806209424511,-0.007675446569920,-0.006391534581780,0.003826264292002,0.020809859037399,-0.001069516176358,0.000975588860456,0.002910159062594,-0.022964682430029,-0.017169110476971,0.018920846283436) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.003678376087919,-0.006155766546726,-0.007510705385357,0.007308761123568,0.009000032208860,0.008099883794785,-0.026271449401975,-0.011659594252706,0.008119680918753,0.008777910843492,-0.004015853162855,-0.009050260297954) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.022485176101327,0.014936600811779,0.017173254862428,-0.011379331350327,0.000157462447532,0.006594385951757,-0.028993844985962,-0.007731338031590,0.043072465807199,-0.009198251180351,-0.005091027356684,0.012765795923769) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.024287767708302,0.019359165802598,-0.032168410718441,-0.003630376886576,-0.008061487227678,-0.014018963091075,0.001110954908654,0.006720362231135,0.010661072097719,-0.003630903316662,0.008183242753148,0.008783531375229) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.000370229856344,-0.002680836478248,-0.001698506996036,-0.005186466500163,-0.005085978657007,-0.002936900127679,0.004233460873365,0.002099724486470,0.003903961041942,0.001710544456728,-0.000708173436578,-0.002085769083351) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.003557836636901,-0.000465689139673,0.000100854485936,0.004473723005503,0.003529938170686,0.000586479378399,0.003038010094315,-0.003416503779590,0.006260788533837,-0.004849565681070,0.001052158419043,-0.000504498311784) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.002064162399620,-0.001530513050966,0.003195368917659,0.002867618110031,0.006356058176607,0.004830102436244,-0.002025183290243,0.000770257902332,0.005632290616632,0.005749545525759,0.001081320457160,-0.007739638909698) * MODEL11_texOff(vec2(1,1));
res += mat4x3(-0.010210481472313,-0.002476861700416,0.000075036507042,0.003885217709467,0.003485995810479,0.001515896990895,-0.000790813763160,-0.001263356651179,-0.001558352727443,-0.008556499145925,-0.015278141014278,-0.009960912168026) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.027948185801506,-0.031918652355671,-0.022250333800912,0.003721382701769,-0.013766103424132,0.002741350326687,-0.010041709057987,0.007021416909993,-0.002047558547929,0.001217716257088,0.004810745362192,0.000983229256235) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.000438093877165,-0.004020854830742,-0.013897739350796,-0.001675296691246,-0.009959816001356,0.010102882049978,-0.010171715170145,0.016634924337268,-0.004431407898664,-0.002164874691516,-0.001782162929885,-0.001102941925637) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(0.003363538533449,-0.002081736689433,-0.002943196101114,0.007020405028015,0.003610809799284,0.001543069491163,-0.003493442665786,-0.000128001120174,0.001470161951147,-0.001253595226444,-0.017491396516562,-0.012871146202087) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.020461026579142,0.021846387535334,0.016855729743838,0.058379486203194,-0.020907992497087,-0.022185178473592,-0.039856996387243,-0.000382737431210,0.017265766859055,0.024594619870186,0.032335370779037,0.023286756128073) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.000409820378991,0.002915550954640,0.009925020858645,0.008546601980925,-0.026078939437866,-0.001912749721669,-0.031730826944113,0.014214178547263,0.044982414692640,-0.001582503900863,0.002914722310379,0.012771513313055) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.001858432311565,0.002533212769777,0.002934048883617,-0.002899676794186,0.000399028387619,0.001329067512415,-0.001902941963635,0.000452073611086,0.001115305116400,-0.002986285369843,-0.000183719515917,0.000770999060478) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(-0.009321580640972,-0.011982532218099,-0.008594884537160,-0.001393781276420,0.000467557692900,-0.004080509301275,-0.003320755204186,-0.001033615670167,-0.004197177477181,-0.006952796131372,-0.007242630701512,-0.005682888906449) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.002137953881174,0.000970057211816,-0.003677631961182,-0.001833337242715,-0.000825452036224,-0.001860679942183,-0.001186397159472,0.000261062290519,-0.002778665395454,0.000137576178531,-0.001421860186383,-0.003915188368410) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] sub-pixel convolution 2

vec4 hook()
{
vec3 res = vec3(-0.000587003654800,-0.001804092549719,-0.000888788315933);
res += mat4x3(0.000233990052948,0.002402727492154,0.001484295353293,-0.011171216145158,-0.005158118903637,-0.002359041478485,0.007026116363704,0.001419224543497,-0.002275539329275,-0.007168125361204,0.005372127518058,-0.001254874863662) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.006085412576795,0.001157425693236,-0.004229042679071,-0.003605276811868,-0.011791337281466,-0.014847288839519,0.014271811582148,0.021067293360829,0.018110223114491,-0.000443617493147,-0.002953430172056,-0.008693911135197) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(-0.000105979517684,0.001055573113263,0.002403163351119,-0.001587461680174,-0.000620196224190,-0.000996188144200,0.001709312316962,0.002629045629874,0.005739556159824,0.002773766405880,0.002476094989106,0.001847730018198) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.041252296417952,0.024103278294206,0.019504873082042,-0.010873301886022,0.007024232763797,0.006825989112258,0.024346858263016,0.006389473564923,0.000806162133813,0.033395573496819,0.031831603497267,-0.015092696063221) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(0.003881016513333,0.030066333711147,-0.012267234735191,-0.021329162642360,-0.039025213569403,-0.035788036882877,0.039294030517340,0.054283726960421,0.046001806855202,0.018738189712167,-0.017186364158988,-0.035509571433067) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.008053974248469,-0.007106679491699,-0.001260202261619,-0.000793432525825,-0.001280294498429,-0.004955796990544,-0.002300756983459,0.001414786442183,0.015666473656893,-0.004659892991185,-0.005577187053859,0.003922846168280) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.007311415392905,-0.002607550472021,0.009977555833757,0.007433138322085,0.011424811556935,0.007586772087961,0.004599093925208,-0.000619536906015,-0.000803850183729,0.007997250184417,-0.008360323496163,0.000533444981556) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.003382242983207,0.004607210867107,0.000581159489229,-0.006049202755094,-0.006729072425514,0.000898811791558,0.003318093251437,0.007890100590885,0.007630630396307,-0.005135247483850,-0.000986665021628,0.019318025559187) * MODEL7_texOff(vec2(1,0));
res += mat4x3(-0.001731515862048,-0.001935530453920,0.000376400974346,0.001268048887141,-0.000202570343390,-0.003799781436101,-0.002268526004627,-0.001499949255958,0.000650241738185,0.000215705047594,-0.001966025214642,0.000264812522801) * MODEL7_texOff(vec2(1,1));
res += mat4x3(-0.015236091800034,-0.004296088125557,0.003070504637435,-0.004333381541073,-0.006092843599617,-0.005301129538566,0.013094043359160,0.007644372992218,0.004665823653340,0.002568798139691,-0.006181243341416,-0.005111843813211) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.022973917424679,-0.029281212016940,-0.028417956084013,-0.016766667366028,0.021156636998057,0.011024504899979,-0.005788975860924,-0.018166581168771,-0.003413556609303,-0.011118576861918,-0.003276779782027,0.010325377807021) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(-0.000341695646057,-0.004835113883018,-0.013055306859314,0.017535051330924,0.008300309069455,-0.026876991614699,0.006593571044505,0.003524536732584,-0.000398449104978,0.004099981393665,0.002167742699385,-0.002722024684772) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.017701534554362,-0.007190126925707,-0.002411542693153,0.024301650002599,-0.016435295343399,-0.017583783715963,-0.009004999883473,0.015900276601315,0.008329429663718,0.024587923660874,-0.009041338227689,-0.026097677648067) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.022988537326455,-0.032123535871506,-0.029828090220690,-0.022097375243902,-0.027871524915099,0.039087925106287,0.038487657904625,-0.018225494772196,-0.051357794553041,-0.017428955063224,-0.017128366976976,0.014537672512233) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.001900588744320,0.000153041604790,-0.009082794189453,0.002052513184026,0.005503048654646,0.014285006560385,-0.003332145744935,-0.000579644576646,0.025979308411479,0.006002988666296,0.006490395870060,-0.000570944335777) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.006358183920383,0.002562033012509,0.000327421876136,0.006314903032035,0.008988365530968,-0.004153475165367,-0.002438315423205,-0.006088558584452,-0.007630803622305,0.000685129663907,0.001103068003431,0.000240668450715) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.006460303906351,0.006627699825913,0.007196470629424,0.001831286121160,0.000878885854036,-0.009732052683830,0.006350132636726,0.012976883910596,0.004471564199775,0.002435350092128,0.000501919363160,-0.001909175072797) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.000759915099479,0.001343220239505,0.003974576015025,-0.001922270865180,0.000005870166206,-0.002480366034433,0.003386370139197,0.003286730265245,0.001136161736213,-0.000493014755193,-0.000421497330535,-0.000141116004670) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.004448943771422,0.002725276630372,0.000500519236084,0.001473147189245,0.000585976638831,-0.000198168971110,0.001638826448470,-0.004642695654184,-0.002920351456851,0.001085286261514,0.005849333945662,0.005519805476069) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(-0.010609087534249,0.010972880758345,0.012993611395359,0.003959966823459,0.002824408002198,0.001394186867401,0.002285063033924,0.003005376784131,-0.004792198538780,-0.000487876648549,-0.015980452299118,-0.011461993679404) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.004966829903424,-0.005558787379414,-0.012168746441603,-0.003789623035118,-0.001466828165576,0.003734209341928,0.003915309440345,0.001579088624567,-0.001462003448978,-0.001446092035621,0.002982708625495,0.006171593908221) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(0.018322519958019,0.000219127454329,-0.003130318596959,-0.002325107110664,0.007428504060954,0.006857481785119,-0.018017040565610,-0.005697748623788,0.000968729611486,0.011004966683686,-0.016467889770865,-0.004303720779717) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.055956039577723,-0.028797280043364,0.020110933110118,0.023822005838156,-0.013599493540823,-0.021701080724597,-0.019649408757687,0.042682386934757,0.006567700300366,-0.049364395439625,0.002767997095361,0.058299660682678) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.000042995030526,0.005126808304340,-0.015354837290943,-0.017239358276129,-0.019292552024126,0.021683318540454,0.015337027609348,0.005930589046329,-0.034017242491245,0.009152539074421,0.012563970871270,-0.013086497783661) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.005753539036959,0.001529734814540,0.005542211700231,-0.000186582707101,0.004915643949062,0.002949653891847,-0.001973202684894,0.000166875033756,0.002832834841684,-0.004456165712327,-0.002291760873049,-0.003856924595311) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.000591173709836,-0.011674510315061,-0.010889021679759,0.001757340389304,-0.006110440474004,-0.006905629299581,-0.004112814553082,0.002058687387034,0.005510677117854,0.011103273369372,0.012960962951183,-0.004045223817229) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.005620012991130,0.006941319443285,0.006706886924803,-0.010142729617655,-0.002707405947149,0.011576694436371,0.001963128335774,-0.002018447266892,-0.000773903855588,-0.007154547609389,-0.004985339473933,-0.000934928539209) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.004014197736979,0.004120054654777,0.003996666055173,-0.005606952123344,-0.002572246594355,-0.000638420111500,-0.003186930436641,0.005592530127615,-0.002367433859035,-0.003233570372686,-0.000843796064146,0.000742251402698) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.024127908051014,0.016786830499768,0.008324002847075,-0.003795207710937,-0.007068472914398,-0.006981522310525,-0.018130583688617,0.020736521109939,-0.004262794740498,-0.008193625137210,-0.010716560296714,-0.007679399568588) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(0.003032095963135,0.008250825107098,0.017209047451615,0.001115469145589,0.000228020624490,-0.000004860132321,-0.002456465037540,0.011207230389118,-0.006312312092632,-0.002663864055648,-0.005129882134497,-0.006181185133755) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.008646154776216,-0.002370761241764,0.002543991897255,0.008034544996917,0.002425579121336,-0.000142150354804,0.013432218693197,0.008206410333514,0.000539637054317,-0.009310866706073,0.013157414272428,0.014140159823000) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(0.019693763926625,0.008533665910363,-0.008284875191748,0.009828537702560,0.013669929467142,0.013516904786229,0.038016565144062,-0.001729406765662,-0.039800379425287,0.018122691661119,-0.012049869634211,-0.023669086396694) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.000809934106655,0.003270195564255,0.012851812876761,-0.002648921683431,-0.002459494397044,0.002458059461787,0.001091346959583,-0.002992895664647,-0.019412918016315,0.009011051617563,0.019601397216320,0.028281681239605) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.005161785054952,-0.002505353884771,-0.000426938931923,0.001380083267577,-0.003423141315579,-0.002986623207107,-0.001442302716896,-0.003646898549050,-0.002762898337096,-0.001638950780034,0.000891384726856,0.001298661925830) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.005319984164089,-0.004763235338032,-0.006058148574084,0.004130872432142,0.010649316944182,0.008089820854366,-0.000925111235119,0.004229504615068,0.001570295891725,-0.005307176150382,-0.007349108811468,-0.006218089722097) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.002384322462603,-0.003454335033894,-0.004829580429941,-0.000135265727295,-0.001843929057941,-0.001956801163033,-0.001831538393162,0.000814641825855,-0.001595657784492,-0.000712869456038,-0.000685150618665,-0.002168666804209) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.001321750809439,-0.001214711111970,-0.000218990928261,0.007853462360799,0.002008805284277,-0.001709007658064,0.000047886605898,-0.000793337589130,0.000714814814273,-0.024289067834616,0.015110258944333,0.024644261226058) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.003578912001103,-0.000065091349825,0.002651317045093,-0.011772238649428,-0.008537616580725,0.005031027365476,0.006698645651340,-0.002115340670571,-0.005303573329002,0.035531237721443,0.010403027758002,-0.035454850643873) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(0.000153758941451,-0.002990009961650,-0.004201881121844,-0.002269138116390,0.001102907932363,-0.000770635379013,-0.003682514186949,-0.001666097319685,0.001318881870247,-0.011935534887016,-0.011185871437192,0.012624295428395) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.005022496450692,-0.007086843717843,-0.008850603364408,-0.006844496820122,0.006971749942750,0.009906178340316,0.010253953747451,-0.020644744858146,0.006293214857578,0.014410713687539,0.002243652241305,-0.006485168822110) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.022724092006683,0.015176507644355,0.018970075994730,0.017055172473192,0.006000313907862,-0.012819430790842,-0.013132762163877,-0.043603088706732,0.056120399385691,0.005477801430970,-0.016164319589734,-0.003052594140172) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.028901705518365,0.021603588014841,-0.032521158456802,-0.007418657653034,-0.010248258709908,0.000572395627387,0.002343370113522,0.006857234984636,0.022894181311131,-0.016593324020505,-0.001469261711463,0.018756762146950) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.001790492329746,-0.002830504206941,-0.002073073061183,-0.003797981655225,-0.004105027765036,-0.003393687307835,-0.005440333858132,0.002072315430269,0.004357928875834,0.001082822680473,-0.003694574115798,-0.004729438573122) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.000262208603090,-0.000389381020796,0.003319524694234,-0.002897779224440,0.000478239380755,0.000855909951497,0.000064265506808,-0.002807646989822,0.002672020811588,-0.007183912675828,0.002078716643155,0.000977382995188) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.001012262539007,-0.001404935610481,-0.001009432831779,0.005880970973521,0.004550660494715,-0.001046796562150,-0.002401769626886,-0.000980774639174,0.005260071717203,0.010082078166306,0.004479407332838,-0.008553388528526) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.001696890802123,-0.002412500791252,-0.003444000612944,-0.000258292508079,0.001564720412716,0.001488157431595,0.001430487493053,-0.000560922140721,-0.000844382797368,-0.013058607466519,-0.011434401385486,-0.006177703384310) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(0.007169772870839,0.009719616733491,0.009322051890194,0.009056977927685,-0.002158202463761,-0.001002531615086,0.001352564664558,-0.000544008566067,-0.001653308281675,-0.014798228628933,-0.014488348737359,-0.013292943127453) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.001814371789806,-0.001695358310826,0.001636843313463,-0.000756641500629,-0.005148308817297,0.003639144357294,-0.004463340621442,0.003754547564313,0.001062588300556,-0.002763572614640,-0.006210765335709,-0.011065428145230) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(0.002176969079301,0.000432226224802,0.000286495254841,0.008388225920498,0.002232593949884,0.001592004206032,-0.005368424579501,0.000415150600020,0.000309476774419,0.004586088471115,-0.016380565240979,-0.013621027581394) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(0.008348148316145,0.008734591305256,0.008035427890718,0.039092052727938,-0.034721601754427,-0.007096965797246,-0.054421219974756,0.015679104253650,0.011620696634054,0.039308998733759,0.047770291566849,0.035494893789291) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.002151599386707,0.003093898762017,0.004656399134547,0.006109841167927,-0.025328127667308,0.012490078806877,-0.031017059460282,0.031247705221176,0.022808104753494,-0.001664956682362,0.007217065896839,0.023570915684104) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.003050247905776,0.001784065039828,0.002508365083486,-0.000350963295205,0.003029048908502,0.002587257418782,-0.000912041577976,0.000303318520309,0.001114346203394,-0.007043190300465,-0.003696900792420,-0.000493746076245) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(-0.005288826301694,-0.008239782415330,-0.007017244119197,0.007040179800242,0.003355878870934,-0.011133956722915,-0.000651312642731,-0.005580352153629,-0.000175079825567,-0.009620756842196,-0.008780546486378,-0.007318921852857) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.003043668344617,0.001410369295627,-0.002369711874053,-0.001591430278495,-0.001362054375932,-0.007714563049376,-0.005080729722977,0.000049825244787,0.009360431693494,-0.000558575149626,-0.003421184839681,-0.006691584829241) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] sub-pixel convolution 3

vec4 hook()
{
vec3 res = vec3(0.000692328670993,0.000363429338904,0.000177166177309);
res += mat4x3(-0.001630660612136,-0.000069018773502,0.002100926591083,-0.003201865358278,-0.002658664481714,-0.002961619058624,0.006487195845693,0.004917048849165,0.000692081754096,0.003280373755842,-0.000262215617113,-0.002409693086520) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.000816139858216,-0.001703509595245,0.000653885712381,-0.002728502266109,-0.003906433004886,-0.004042699467391,0.000471262232168,-0.000909763330128,0.004343933425844,-0.002197914058343,-0.008118132129312,-0.008458962664008) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.000408530700952,-0.000155699919560,0.000409857893828,-0.000456544454210,-0.000433633482317,-0.000048862144467,0.001314089866355,0.003421945963055,0.001540645142086,0.000116814400826,0.002648112131283,0.000072767106758) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.022262977436185,0.024114539846778,0.009340389631689,0.038553826510906,0.020178038626909,0.004836298990995,0.018842240795493,0.009745812043548,0.000026349804102,0.041067592799664,-0.021727913990617,-0.017936481162906) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(0.007731132674962,0.023730818182230,-0.020368112251163,0.005605360958725,0.025122720748186,0.045070093125105,-0.010143011808395,-0.005489273928106,0.011019175872207,-0.003218308556825,-0.011999771930277,0.033790819346905) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.006156558636576,-0.007291911635548,-0.003659554524347,0.007199814077467,0.005569338332862,0.003459662199020,-0.001765793538652,-0.000130612854264,-0.004776022396982,-0.002432338194922,-0.004751879256219,-0.001331993611529) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.023780653253198,0.000168435813976,0.017761597409844,0.026081001386046,0.006744106300175,-0.005000771023333,0.002072791568935,0.001692541991360,-0.000017520962501,-0.043637804687023,-0.016735358163714,0.016236875206232) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.004592370707542,0.014110610820353,0.001835028291680,0.010968303307891,0.026260556653142,0.037357445806265,-0.011842382140458,-0.009231155738235,-0.003769226372242,-0.002200268907472,0.022358864545822,0.006673707626760) * MODEL7_texOff(vec2(1,0));
res += mat4x3(-0.004408674780279,-0.003116740379483,0.003509569214657,0.003047030651942,0.003548003034666,0.002826629206538,-0.001558008487336,-0.003616112982854,-0.007359776180238,-0.003843546146527,-0.001002344419248,0.000690916669555) * MODEL7_texOff(vec2(1,1));
res += mat4x3(-0.013150689192116,-0.007625898346305,-0.002295483602211,-0.001391429454088,-0.004322927910835,-0.001096910564229,-0.004943063948303,0.001667610486038,0.003308949293569,-0.002939316444099,0.001080320449546,0.000200932307052) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.000151492553414,-0.001564783393405,-0.009753781370819,0.000280867912807,0.010398347862065,-0.001219051075168,-0.004169350955635,-0.011199023574591,-0.014725047163665,-0.001687571522780,0.001277879113331,-0.002076815115288) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(-0.002813040511683,-0.005042153410614,-0.003160787513480,0.011397509835660,-0.001458662212826,-0.018024681136012,0.007962702773511,0.006006957031786,-0.003115218365565,0.003078214591369,0.002355637494475,-0.000794673862401) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(0.008337431587279,0.000865516893100,0.000936662370805,0.009237216785550,-0.015368486754596,-0.012886884622276,-0.036764726042747,-0.014134675264359,0.005811349954456,0.030104687437415,-0.018117425963283,-0.025949975475669) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(0.032120395451784,0.043530061841011,0.032637733966112,-0.049369763582945,-0.006086335051805,0.048758491873741,0.028380887582898,0.046169560402632,-0.004201261792332,-0.025105167180300,-0.016393195837736,0.030913943424821) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.003446270013228,0.004514784552157,0.012765727005899,0.010493340902030,0.020076023414731,0.000068860834290,-0.006083577405661,-0.007218435872346,-0.001539667369798,0.005884672515094,0.007072619628161,-0.000951638794504) * MODEL8_texOff(vec2(0,1));
res += mat4x3(-0.001395439379849,-0.002075195545331,-0.001251161680557,0.018881587311625,0.006233186461031,-0.009792259894311,0.010896377265453,-0.003692545928061,-0.001965249190107,0.003512023249641,0.002403473481536,-0.001840676413849) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.000857754668687,0.003424155758694,0.001826074090786,0.009965798817575,-0.007984019815922,-0.010038536973298,-0.021085711196065,0.009552595205605,0.033382486552000,-0.000260881817667,-0.003894075984135,-0.001361489761621) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.003624481381848,-0.004301663488150,-0.002880868501961,-0.002295684535056,-0.002635305514559,0.001010823179968,-0.001353413332254,0.001300240983255,-0.012329461053014,0.001630378654227,0.001458072103560,-0.000414609588915) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.007742788642645,0.005120188463479,0.005340262781829,0.000814061611891,0.001082710223272,-0.000102516438346,-0.004137223586440,-0.003605809528381,-0.001116940868087,-0.000647993118037,0.004847675561905,0.006197503767908) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(-0.006698246113956,-0.003423422807828,0.005202735308558,0.005765535403043,0.004311553668231,0.001358935609460,0.003511284943670,0.008642828091979,-0.003319083945826,-0.006446080282331,-0.005103028845042,0.000091545785835) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.002625877503306,-0.004940091632307,-0.004606348462403,-0.004812323022634,-0.000787012104411,0.004036891739815,0.002044200897217,0.001524378545582,0.000712832261343,-0.000638042693026,-0.000905925058760,-0.001741730957292) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.005599191877991,0.002364633139223,-0.000687830208335,-0.001005552127026,0.005012477282435,0.003715891391039,-0.002192728919908,-0.011233882978559,-0.001892426866107,-0.029867773875594,-0.008732968941331,0.002368492307141) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(0.020482843741775,-0.036442626267672,-0.040524154901505,0.007335193455219,-0.007621350698173,-0.014579430222511,-0.047169685363770,0.013533205725253,0.035995189100504,0.001983272144571,0.055702097713947,0.015208031982183) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.003973077051342,0.005262415390462,0.032475184649229,-0.004009109921753,-0.012271125800908,-0.000354002550012,0.012899843975902,0.010239983908832,-0.020815918222070,0.006484680809081,0.000176150249899,-0.022244308143854) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.009418622590601,-0.004087953362614,-0.001894549117424,-0.001859185402282,0.008439314551651,0.006466842722148,-0.003510751994327,-0.002346591558307,0.001397259416990,0.000928996247239,0.003803854109719,-0.002041609026492) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(0.025461522862315,0.014206638559699,-0.010231010615826,0.014483180828393,-0.014752510935068,-0.014996871352196,0.011692486703396,-0.002567800460383,-0.009094064123929,0.019359074532986,-0.016104759648442,-0.029742406681180) * MODEL9_texOff(vec2(1,0));
res += mat4x3(-0.002280776388943,-0.008542548865080,0.001819644588977,-0.024215979501605,-0.009029682725668,0.034736339002848,0.004157080780715,-0.002749696141109,0.002003346802667,0.001126846414991,0.000472947838716,0.008807118982077) * MODEL9_texOff(vec2(1,1));
res += mat4x3(-0.003232029965147,0.000878002669197,0.002379693323746,-0.004983013030142,-0.001768989721313,0.000407167040976,-0.001573172048666,0.005417574197054,-0.000759512709919,0.000040460985474,0.000137683367939,0.000445741519798) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(-0.007119697984308,-0.011374204419553,-0.010804795660079,-0.005539945326746,-0.008356095291674,-0.007358421571553,-0.008302269503474,0.007056966889650,-0.002093217801303,-0.003360923845321,-0.002746799727902,-0.000843590300065) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(0.003857206786051,0.004308250732720,-0.000474494823720,0.001407811883837,-0.000293462537229,-0.002090868772939,-0.002942622173578,0.003623581025749,0.001448473893106,-0.001456167548895,-0.003693760139868,-0.003591179149225) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.016847362741828,-0.009179702959955,-0.006323885172606,0.011360102333128,0.005977530032396,0.002490318380296,0.002738899551332,0.010573456063867,-0.000540134205949,-0.006464293226600,0.010152707807720,0.010913189500570) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.044996466487646,-0.046658951789141,-0.033614605665207,0.011756687425077,0.015318825840950,0.015416762791574,0.035457316786051,0.040128014981747,-0.051032003015280,0.012458515353501,-0.011808157898486,-0.018522184342146) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.000158918017405,-0.003071173094213,-0.020228255540133,-0.001008580205962,0.000046752513299,0.005602282006294,0.003011404303834,0.003694402752444,-0.044981095939875,0.008285693824291,0.017916008830070,0.022864351049066) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.000961338286288,0.002676240634173,0.001438471605070,-0.028710080310702,-0.009141263552010,0.000182311981916,0.001661808928475,0.001496017677709,-0.000035362525523,-0.006183298304677,0.005180400796235,0.005566747859120) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.008528396487236,-0.010952637530863,-0.005797015037388,-0.018065925687551,-0.034269023686647,-0.042819548398256,-0.001620858558454,-0.001997798215598,0.001369737670757,-0.004933874122798,-0.016627464443445,-0.018273800611496) * MODEL10_texOff(vec2(1,0));
res += mat4x3(0.000552372424863,0.001120420522057,-0.001427906798199,0.002086797961965,0.001958871027455,-0.002919487189502,0.001245038118213,0.002384670777246,-0.000548765936401,-0.001492092502303,-0.000418477517087,0.000870131480042) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.000451007159427,-0.000430587067967,0.000690077606123,0.010460009798408,0.001260893070139,-0.004200911615044,0.000205632619327,0.002102396450937,0.001481842482463,-0.023595197126269,0.002701380988583,0.017865912988782) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.000876675301697,-0.002136306604370,-0.001102511771023,-0.005912426393479,0.003606786485761,0.010767822153866,0.001699791057035,-0.001480534556322,-0.000741941679735,0.016673672944307,0.012090792879462,-0.015198224224150) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.000206775483093,-0.002548568416387,-0.002637042431161,-0.003157356753945,-0.004124364815652,-0.005732735153288,-0.002745139412582,-0.001796945580281,0.000287297792966,-0.004899324383587,-0.005379383452237,0.003653787309304) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.002942494582385,-0.007142635062337,-0.005980378948152,-0.014793568290770,0.000653363356832,0.007601891178638,0.028404040262103,-0.014592138119042,0.002834508195519,0.010865315794945,0.014049045741558,0.004297780338675) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.014945545233786,0.011774327605963,0.016353536397219,0.037762969732285,-0.004084275104105,-0.030416412279010,0.006241106428206,-0.045101173222065,0.026387918740511,0.025236668065190,-0.020450675860047,-0.027668211609125) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.019197277724743,0.012062906287611,-0.020273556932807,-0.009516900405288,-0.005006214138120,0.024848300963640,0.001859163166955,0.002946323715150,0.013370666652918,-0.020072069019079,-0.011175516992807,0.022059101611376) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.001827822881751,-0.005770031828433,-0.004805040080100,0.005889315623790,0.001243080594577,0.000805679941550,-0.023646207526326,0.002654429990798,0.006822540424764,0.004251567646861,-0.004735278431326,-0.008670957759023) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.008219913579524,0.008308162912726,0.010528806596994,-0.011994578875601,-0.002018738538027,0.006851724348962,-0.012481266632676,0.006886519026011,0.012038964778185,-0.010659540072083,0.002737385686487,0.008520773611963) * MODEL11_texOff(vec2(1,0));
res += mat4x3(0.009277692995965,0.006351053249091,-0.014720805920660,0.000976467446890,-0.003780642757192,-0.008992443792522,-0.000111297362309,0.002671519527212,0.003070942359045,0.008270949125290,0.010116454213858,-0.003654736094177) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.007385507225990,-0.000280254025711,-0.002129457890987,-0.002994146663696,-0.000541357381735,0.000926695007365,0.000464652373921,0.000394952105125,-0.000260258151684,-0.007581020705402,-0.004789595026523,-0.000911999784876) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(0.014357750304043,0.019283963367343,0.017221197485924,0.011481137014925,-0.000882712542079,-0.002416524570435,-0.000463583972305,-0.000963080849033,-0.000062518076447,-0.009877637960017,-0.010530090890825,-0.009108711965382) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.002553397556767,-0.000950051180553,0.004588854964823,0.000869754003361,-0.003131552599370,0.003846064908430,-0.001186370151117,0.001929766265675,0.004073821473867,-0.000900671817362,-0.003569963853806,-0.007138189859688) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.003801843849942,0.001103275339119,0.001948438934051,0.007778220344335,0.002380873542279,0.001796074328013,-0.003871431341395,0.000547449861187,-0.000781749200542,-0.001096612541005,-0.017771149054170,-0.012692270800471) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.023615954443812,-0.024855064228177,-0.015430331230164,0.010178063996136,-0.031590078026056,0.002728631719947,-0.040022026747465,0.015261450782418,0.000798684253823,0.027293184772134,0.033147998154163,0.023135617375374) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.000340115162544,-0.002572781406343,-0.013012861832976,-0.000760101713240,-0.017653174698353,0.017923736944795,-0.021027123555541,0.034281462430954,0.000316441030009,-0.003298836993054,0.003469354240224,0.016253612935543) * MODEL12_texOff(vec2(0,1));
res += mat4x3(0.001934573403560,-0.001519936253317,-0.002552880905569,0.004054753575474,0.004221539944410,0.001950916252099,-0.000148220948176,0.000682691112161,0.001545245060697,-0.008916514925659,-0.013140759430826,-0.007627486251295) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.013856366276741,0.015523009002209,0.011408476158977,0.032389309257269,-0.005900282412767,-0.021644059568644,-0.012827094644308,-0.005804575979710,0.011070792563260,-0.000414197187638,0.003586360486224,0.001108975615352) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.000037238271034,0.000357761047781,0.004156779497862,0.004138434771448,-0.011398379690945,-0.009849372319877,-0.016885047778487,0.001274849288166,0.030702732503414,-0.002285869792104,-0.004356106743217,-0.003854457288980) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_Sharp_3x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(3));
mat3 res = mat3(SUBCONV1_tex(base).rgb,SUBCONV2_tex(base).rgb,SUBCONV3_tex(base).rgb);
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
